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


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

Header


Content

Posted by shadowm2006 on March 01, 2009 - 19:51:
Author: shadowmaster
Date: Sun Mar  1 19:51:34 2009
New Revision: 33262

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

This reverts SVN revision 33217 due to new glitches at normal (1.0x)
speed. It may be applied back and rectified after the RC release.

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=33262&r1=33261&r2=33262&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Sun Mar  1 19:51:34 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) {
+       while (SDL_GetTicks() < (unsigned int)end_tick - 20/speed) {
                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 20:00:05 2009