Core/GameObject: Delete summoned gobs and DestroyForNearbyPlayers gobs spawned with negative spawn time once the gob is deactivated
(cherry picked from commit 0e8e3828f48120629b642d0de1db704fd0bb86cb)
This commit is contained in:
1 parent
ee69943717
commit
00a2de63ad
1 file changed
+8
-1
@@ -693,10 +693,17 @@ void GameObject::Update(uint32 diff)
|
||||
if (!m_respawnDelayTime)
|
||||
return;
|
||||
|
||||
if (!m_spawnId)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_spawnedByDefault)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
Delete();
|
||||
DestroyForNearbyPlayers();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user