X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FTimer.h;h=70b49b051c124b9d0dd1105ca30eb9b54a9e9e17;hb=bbf7120b50c68867fe48844abc93ff1383bf5ec7;hp=2d6326f76576c582bb36d2c49a3ee49e4cbdb2ed;hpb=e559a146d268996a3367e370213b09a3b190e0bc;p=l2e.git diff --git a/src/app/Timer.h b/src/app/Timer.h index 2d6326f..70b49b0 100644 --- a/src/app/Timer.h +++ b/src/app/Timer.h @@ -66,6 +66,12 @@ public: return data && data->justHit; } + void Clear() { + if (data) { + --data->refCount; + data = 0; + } + } void Reset() { if (data) data->time = 0; } @@ -94,7 +100,6 @@ public: public: void Update(Time delta) { for (typename std::list >::iterator i(data.begin()), end(data.end()); i != end;) { - TimerData