Core/Objects: ported master branch handling for properly destroying objects via out of range and destroy object opcode
# Conflicts: # src/server/game/Entities/Creature/Creature.cpp
This commit is contained in:
1 parent
284b2a23eb
commit
f2b4f2208e
10 files changed
+43
-16
No files matched your search
@@ -789,7 +789,7 @@ void GameObject::Update(uint32 diff)
|
||||
m_respawnTime = 0;
|
||||
|
||||
if (m_spawnId)
|
||||
DestroyForNearbyPlayers();
|
||||
UpdateObjectVisibilityOnDestroy();
|
||||
else
|
||||
Delete();
|
||||
|
||||
@@ -806,7 +806,7 @@ void GameObject::Update(uint32 diff)
|
||||
SaveRespawnTime();
|
||||
|
||||
if (m_respawnCompatibilityMode)
|
||||
DestroyForNearbyPlayers();
|
||||
UpdateObjectVisibilityOnDestroy();
|
||||
else
|
||||
AddObjectToRemoveList();
|
||||
|
||||
|
||||
Reference in new issue
Block a user