Core/GameObject: fix stupid ridiculous junk legacy hack code with negative gobj respawn time to work again

(cherry picked from commit 27e7906814)
This commit is contained in:
Treeston
2018-02-23 19:52:32 +01:00
committed by funjoker
parent 181c671924
commit de3eb7b298

View File

@@ -1380,6 +1380,8 @@ void GameObject::SetRespawnTime(int32 respawn)
{
m_respawnTime = respawn > 0 ? GameTime::GetGameTime() + respawn : 0;
m_respawnDelayTime = respawn > 0 ? respawn : 0;
if (respawn && !m_spawnedByDefault)
UpdateObjectVisibility(true);
}
void GameObject::Respawn()