mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Add OnReset for damage indication
This commit is contained in:
parent
5623c5c008
commit
b8602f019b
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue