X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=manipulator.cc;h=7455d5bdfecb45b1c5738791b0fea60785cc69be;hb=a845456cf185afc67d4fdb3aee7fed27c488b4fe;hp=b17da00d5f27bf968a4ff8fec17211534c16c3b8;hpb=ba46b057f3e2613a86f2dea7fa8022990482c735;p=universe.git diff --git a/manipulator.cc b/manipulator.cc index b17da00..7455d5b 100644 --- a/manipulator.cc +++ b/manipulator.cc @@ -1,17 +1,6 @@ -//////////////////////////////////////////////////////////////////////////////// -// This program is free software; you can redistribute it and/or // -// modify it under the terms of the GNU General Public License // -// version 2 as published by the Free Software Foundation. // -// // -// This program is distributed in the hope that it will be useful, but // -// WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // -// General Public License for more details. // -// // -// Written and (C) by François Fleuret // -// Contact for comments & bug reports // -//////////////////////////////////////////////////////////////////////////////// +// Written and (C) by Francois Fleuret +// Contact for comments & bug reports #include "manipulator.h" @@ -128,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 { @@ -258,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);