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

Port From (https://github.com/TrinityCore/TrinityCore/commit/de3eb7b298468d87b33a29e1baaa50508e90b562)
This commit is contained in:
hondacrx
2021-08-09 09:49:14 -04:00
parent 8e758048ae
commit 2b2698ea3c
@@ -2771,6 +2771,8 @@ namespace Game.Entities
{
m_respawnTime = respawn > 0 ? GameTime.GetGameTime() + respawn : 0;
m_respawnDelayTime = (uint)(respawn > 0 ? respawn : 0);
if (respawn != 0 && !m_spawnedByDefault)
UpdateObjectVisibility(true);
}
public bool IsSpawned()