From: Daniel Karbach Date: Sun, 12 Aug 2012 13:32:04 +0000 (+0200) Subject: added clear timer function X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=bbf7120b50c68867fe48844abc93ff1383bf5ec7;p=l2e.git added clear timer function --- 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; }