X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftimer.cpp;h=f316fa57713ba47abf73699a20ce2492db094299;hb=9c511ea692d3a2339597211f08f18ea74fad35ec;hp=a8f2d754a71ab52fa7c568acb806be3c0b65b78d;hpb=84160722392a024dda42bd86ca9bd85b68c49457;p=supertux.git diff --git a/src/timer.cpp b/src/timer.cpp index a8f2d754a..f316fa577 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -19,6 +19,7 @@ // 02111-1307, USA. #include "SDL.h" + #include "defines.h" #include "timer.h" @@ -53,6 +54,19 @@ return; st_pause_count = 0; } +bool st_pause_ticks_started(void) +{ +if(st_pause_count == 0) +return false; +else +return true; +} + +Timer::Timer() +{ + init(true); +} + void Timer::init(bool st_ticks) {