Few small optimizations here and there

This commit is contained in:
Aokromes committed 2017-02-01 16:51:21 +01:00
1 parent 0f9c7106ce
commit 8bb777ef5c
35 files changed
+366 -373

No files matched your search

@@ -714,7 +714,7 @@ void GameObject::Update(uint32 diff)
if (!m_spawnedByDefault)
{
m_respawnTime = 0;
UpdateObjectVisibility();
DestroyForNearbyPlayers(); // old UpdateObjectVisibility()
return;
}
@@ -724,7 +724,7 @@ void GameObject::Update(uint32 diff)
if (sWorld->getBoolConfig(CONFIG_SAVE_RESPAWN_TIME_IMMEDIATELY))
SaveRespawnTime();
UpdateObjectVisibility();
DestroyForNearbyPlayers(); // old UpdateObjectVisibility()
break;
}