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


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

Header


Content

Posted by loonycyborg on March 02, 2009 - 00:22:
Author: loonycyborg
Date: Mon Mar  2 00:22:44 2009
New Revision: 33279

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33279&view=rev
Log:
Fixed compiler warning.

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=33279&r1=33278&r2=33279&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Mon Mar  2 00:22:44 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 - 
std::min<int>(20/speed,20)) {
+       while (SDL_GetTicks() < (unsigned int)end_tick - 
std::min<int>((unsigned int)(20/speed),20)) {
                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 Mon Mar 02 00:40:22 2009