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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}

View File

@ -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 */