mail[Wesnoth-commits] r33217 - /trunk/src/unit_animation.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by jeremy . rosen on March 01, 2009 - 12:43:
Author: boucman
Date: Sun Mar  1 12:43:51 2009
New Revision: 33217

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33217&view=rev
Log:
remove a useless delay only visible at slow speed

Modified:
    trunk/src/unit_animation.cpp

Modified: trunk/src/unit_animation.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_animation.cpp?rev=33217&r1=33216&r2=33217&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Sun Mar  1 12:43:51 2009
@@ -941,7 +941,7 @@
         disp->draw();
         events::pump();
        int end_tick = 
animated_units_[0].my_unit->get_animation()->time_to_tick(animation_time);
-       while (SDL_GetTicks() < (unsigned int)end_tick - 20/speed) {
+       while (SDL_GetTicks() < (unsigned int)end_tick) {
                disp->delay(std::max<int>(0,
                        std::min<int>(10,
                        static_cast<int>((animation_time - 
get_animation_time()) * speed))));




Related Messages


Powered by MHonArc, Updated Sun Mar 01 13:00:06 2009