]> git.localhorst.tv Git - l2e.git/commitdiff
added clear timer function
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 12 Aug 2012 13:32:04 +0000 (15:32 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 12 Aug 2012 13:32:04 +0000 (15:32 +0200)
src/app/Timer.h

index b7711d679481746e8be3c96d41a28e7fd3260770..70b49b051c124b9d0dd1105ca30eb9b54a9e9e17 100644 (file)
@@ -66,6 +66,12 @@ public:
                return data && data->justHit;
        }
 
+       void Clear() {
+               if (data) {
+                       --data->refCount;
+                       data = 0;
+               }
+       }
        void Reset() {
                if (data) data->time = 0;
        }