X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.cpp;h=4d32e54ff627200396db98a293f010c1ac3e8545;hb=eba22158410e664ad102c7542e333d00dcb80cc3;hp=3d4ec4b51781e2e3e06ac363d3fde8136d593aa1;hpb=b9a924741473410f99fee4e56aba6ebe9d181a8c;p=supertux.git diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 3d4ec4b51..4d32e54ff 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -246,7 +246,7 @@ MainLoop::run(DrawingContext &context) elapsed_ticks += ticks - last_ticks; last_ticks = ticks; - Uint32 ticks_per_frame = TICKS_PER_FRAME * game_speed; + Uint32 ticks_per_frame = (Uint32) (TICKS_PER_FRAME * game_speed); if (elapsed_ticks > ticks_per_frame*4) { // when the game loads up or levels are switched the