Core/GameObject: Code cleanup

(cherry picked from commit 16a154c4e8)
This commit is contained in:
jackpoz
2019-04-24 20:33:04 +02:00
committed by Shauren
parent a18808212e
commit 73c6c13ace

View File

@@ -919,17 +919,15 @@ void GameObject::Update(uint32 diff)
if (!m_respawnDelayTime)
return;
if (!m_spawnedByDefault && m_spawnId)
{
m_respawnTime = 0;
DestroyForNearbyPlayers();
return;
}
if (!m_spawnedByDefault)
{
m_respawnTime = 0;
Delete();
if (m_spawnId)
DestroyForNearbyPlayers();
else
Delete();
return;
}