X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.hpp;h=4168baefda36b55a988f6627388731c6877059dc;hb=2f6318d5598f33ce0dd19017148053518521bd0a;hp=340e8cebb2012ab08c353c7da6d2d0ca60c86a74;hpb=fc73efa7ff699fe3c9c237845b6f4fda0d999862;p=supertux.git diff --git a/src/timer.hpp b/src/timer.hpp index 340e8cebb..4168baefd 100644 --- a/src/timer.hpp +++ b/src/timer.hpp @@ -21,6 +21,7 @@ #define __SUPERTUX_TIMER_H__ extern float game_time; +extern float real_time; /** * Simple timer designed to be used in the update functions of objects @@ -32,12 +33,12 @@ public: ~Timer(); /** start the timer with the given period (in seconds). - * If cyclic=true then the timer willl be reset after each period. + * If cyclic=true then the timer will be reset after each period. * Set period to zero if you want to disable the timer. */ void start(float period, bool cyclic = false); /** returns true if a period (or more) passed since start call or last - * successfull check + * successful check */ bool check(); /** stop the timer */ @@ -61,4 +62,3 @@ private: }; #endif -