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 Ovahlord
parent b7f63b29a0
commit 5ef08fa5e8

View File

@@ -693,17 +693,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;
}