Author: mordante
Date: Sun Mar 29 22:30:09 2009
New Revision: 34253
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34253&view=rev
Log:
Converted the old style casts to c++ style casts.
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=34253&r1=34252&r2=34253&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Sun Mar 29 22:30:09 2009
@@ -949,7 +949,9 @@
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>((unsigned int)(20/speed),20)) {
+ while (SDL_GetTicks() < static_cast<unsigned int>(end_tick)
+ - std::min<int>(static_cast<unsigned
int>(20/speed),20)) {
+
disp->delay(std::max<int>(0,
std::min<int>(10,
static_cast<int>((animation_time -
get_animation_time()) * speed))));
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits