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

This commit is contained in:
Treeston
2018-02-23 19:52:32 +01:00
parent 1074a9b053
commit 27e7906814

View File

@@ -1225,6 +1225,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()