From bbf7120b50c68867fe48844abc93ff1383bf5ec7 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 12 Aug 2012 15:32:04 +0200 Subject: [PATCH] added clear timer function --- src/app/Timer.h | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.2