Add OnReset for damage indication

This commit is contained in:
BeaR 2012-12-07 15:39:51 +01:00 committed by oy
parent 5623c5c008
commit b8602f019b
2 changed files with 5 additions and 4 deletions

View file

@ -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;
}

View file

@ -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