X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=manipulator.cc;h=7455d5bdfecb45b1c5738791b0fea60785cc69be;hb=1772e738e79ad97347552ea29ee041440d9e60cb;hp=ca6a144463c53d6d038422326069bde234cf1f17;hpb=3caf13085a6ae1ae41d6f489c8b69206b0ffa48d;p=universe.git diff --git a/manipulator.cc b/manipulator.cc index ca6a144..7455d5b 100644 --- a/manipulator.cc +++ b/manipulator.cc @@ -117,7 +117,7 @@ void Manipulator::update(scalar_t dt, Universe *universe) { scalar_t f = sqrt(sq(_force_x) + sq(_force_y)); if(f >= force_break) { - _current_polygon = false; + _current_polygon = 0; _force_x = 0; _force_y = 0; } else { @@ -247,7 +247,7 @@ void Manipulator::draw_on_universe(SimpleWindow *window) { int xc = int(_hand_x), yc = int(_hand_y); const int delta = 5; - window->color(1.0, 1.0, 1.0); + window->color(0.25, 0.25, 0.25); window->draw_line(xc - delta, yc, xc + delta, yc); window->draw_line(xc, yc - delta, xc, yc + delta);