1
0

Resets ticks alive on death (#5197)

* resets ticks alive on death
* updated the comment in the .h file
This commit is contained in:
12xx12
2021-04-21 13:07:50 +02:00
committed by GitHub
parent 02571aae50
commit 37213eb76c
2 changed files with 2 additions and 1 deletions

View File

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