projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a few warnings
[supertux.git]
/
src
/
mainloop.cpp
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
3d4ec4b
..
4d32e54
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-246,7
+246,7
@@
MainLoop::run(DrawingContext &context)
elapsed_ticks += ticks - last_ticks;
last_ticks = ticks;
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
if (elapsed_ticks > ticks_per_frame*4) {
// when the game loads up or levels are switched the