Core/GameObjects: Fixed GameObject::SetRespawnTime putting gameobjets not using compatibility spawning mode into invalid state
Closes #31047
This commit is contained in:
1 parent
efce3f3463
commit
f5f344ddad
2 files changed
+4
-1
No files matched your search
@@ -1674,6 +1674,9 @@ void GameObject::SetRespawnTime(int32 respawn)
|
||||
m_respawnDelayTime = respawn > 0 ? respawn : 0;
|
||||
if (respawn && !m_spawnedByDefault)
|
||||
UpdateObjectVisibility(true);
|
||||
|
||||
if (m_spawnedByDefault && !m_respawnCompatibilityMode && m_respawnTime > 0)
|
||||
SetLootState(GO_JUST_DEACTIVATED);
|
||||
}
|
||||
|
||||
void GameObject::Respawn()
|
||||
|
||||
Reference in new issue
Block a user