From 37213eb76c15dda4104a3adb6e9d336219f747dc Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Wed, 21 Apr 2021 13:07:50 +0200 Subject: Resets ticks alive on death (#5197) * resets ticks alive on death * updated the comment in the .h file --- src/Entities/Entity.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Entities/Entity.cpp') diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index bff41f48d..1d95ec56e 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -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); } -- cgit v1.2.3