X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FTimer.h;fp=src%2Fapp%2FTimer.h;h=70b49b051c124b9d0dd1105ca30eb9b54a9e9e17;hb=bbf7120b50c68867fe48844abc93ff1383bf5ec7;hp=b7711d679481746e8be3c96d41a28e7fd3260770;hpb=854e5229c3f30bf88aa08d7f0aff56a1411c3367;p=l2e.git diff --git a/src/app/Timer.h b/src/app/Timer.h index b7711d6..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; }