X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.hpp;h=46f00f4ac0cfdeaed3114ab8b32e26354936ed62;hb=c0c4838b917943354c150d56ab970ca249267037;hp=42e1b8fd897f91c462c45bbd8f4bc74570548bd4;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/timer.hpp b/src/timer.hpp index 42e1b8fd8..46f00f4ac 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -20,7 +20,7 @@ #ifndef __SUPERTUX_TIMER_H__ #define __SUPERTUX_TIMER_H__ -extern float global_time; +extern float game_time; /** * new simpler timer designed to be used in the update functions of objects @@ -48,9 +48,9 @@ public: float get_period() const { return period; } float get_timeleft() const - { return period - (global_time - cycle_start); } + { return period - (game_time - cycle_start); } float get_timegone() const - { return global_time - cycle_start; } + { return game_time - cycle_start; } bool started() const { return period != 0 && get_timeleft() > 0; }