From b8602f019b2c8956f3b29df086c74e8b6d342b72 Mon Sep 17 00:00:00 2001 From: BeaR Date: Fri, 7 Dec 2012 15:39:51 +0100 Subject: [PATCH] Add OnReset for damage indication --- src/game/client/components/damageind.cpp | 7 ++++--- src/game/client/components/damageind.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/game/client/components/damageind.cpp b/src/game/client/components/damageind.cpp index e944dc74d..5b4a876b1 100644 --- a/src/game/client/components/damageind.cpp +++ b/src/game/client/components/damageind.cpp @@ -12,7 +12,6 @@ CDamageInd::CDamageInd() { - m_Lastupdate = 0; m_NumItems = 0; } @@ -83,5 +82,7 @@ void CDamageInd::OnRender() Graphics()->QuadsEnd(); } - - +void CDamageInd::OnReset() +{ + m_NumItems = 0; +} \ No newline at end of file diff --git a/src/game/client/components/damageind.h b/src/game/client/components/damageind.h index 4a5975a81..457acb55c 100644 --- a/src/game/client/components/damageind.h +++ b/src/game/client/components/damageind.h @@ -7,7 +7,6 @@ class CDamageInd : public CComponent { - int64 m_Lastupdate; struct CItem { vec2 m_Pos; @@ -32,5 +31,6 @@ public: void Create(vec2 Pos, vec2 Dir); virtual void OnRender(); + virtual void OnReset(); }; #endif