]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Timer.h
added clear timer function
[l2e.git] / 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;
        }