Author: mikkov
Date: Wed Jun  8 23:33:48 2011
New Revision: 10196

URL: http://svn.gna.org/viewcvs/warmux?rev=10196&view=rev
Log:
Stop camera oscillation around target when target is near edge of the map,
which prevents normal stopping mechanism from working. When oscillation was
happening camera slowly overshot x or y target position and then correcting
movement overshot target again (maybe because of ANTICIPATION factor). Fix is
simply to stop x or y movement when camera is on target.

Oscillation happened most often with certain resolution and map combinations.
On such example was 800x600 resolution and Space 2 map.


Modified:
    trunk/src/map/camera.cpp


_______________________________________________
Wormux-cvs mailing list
wormux-...@gna.org
https://mail.gna.org/listinfo/warmux-commits

Reply via email to