X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.cpp;h=9c94f581c421cf1fc606be0d67cae8059a919e0c;hb=08ccb17345a52f5ffd8a5dd6ecf675cad55f16a7;hp=105ce752090a5ee795bc1b77d47adca16145b8cc;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/src/timer.cpp b/src/timer.cpp index 105ce7520..9c94f581c 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -47,7 +47,7 @@ Timer::check() { if(period == 0) return false; - + if(game_time - cycle_start >= period) { if(cyclic) { cycle_start = game_time - fmodf(game_time - cycle_start, period); @@ -59,4 +59,3 @@ Timer::check() return false; } -