Core/GameObject: Code cleanup

This commit is contained in:
jackpoz
2019-04-24 20:33:04 +02:00
parent 9db64666dc
commit 16a154c4e8

View File

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