Resets ticks alive on death (#5197)
* resets ticks alive on death * updated the comment in the .h file
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user