Resets ticks alive on death (#5197)
* resets ticks alive on death * updated the comment in the .h file
This commit is contained in:
parent
02571aae50
commit
37213eb76c
@ -836,6 +836,7 @@ void cEntity::KilledBy(TakeDamageInfo & a_TDI)
|
||||
m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY(), GetPosZ());
|
||||
}
|
||||
|
||||
m_TicksAlive = 0;
|
||||
m_World->BroadcastEntityAnimation(*this, EntityAnimation::PawnDies);
|
||||
}
|
||||
|
||||
|
@ -500,7 +500,7 @@ public:
|
||||
/** Gets remaining air of a monster */
|
||||
int GetAirLevel(void) const { return m_AirLevel; }
|
||||
|
||||
/** Gets number of ticks this entity has existed for */
|
||||
/** Gets number of ticks this entity has been alive for */
|
||||
long int GetTicksAlive(void) const { return m_TicksAlive; }
|
||||
|
||||
/** Gets the invulnerable ticks from the entity */
|
||||
|
Loading…
Reference in New Issue
Block a user