mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 14:17:28 +01:00
Core/GameObject: fix stupid ridiculous junk legacy hack code with negative gobj respawn time to work again
(cherry picked from commit 27e7906814)
This commit is contained in:
@@ -1380,6 +1380,8 @@ void GameObject::SetRespawnTime(int32 respawn)
|
||||
{
|
||||
m_respawnTime = respawn > 0 ? GameTime::GetGameTime() + respawn : 0;
|
||||
m_respawnDelayTime = respawn > 0 ? respawn : 0;
|
||||
if (respawn && !m_spawnedByDefault)
|
||||
UpdateObjectVisibility(true);
|
||||
}
|
||||
|
||||
void GameObject::Respawn()
|
||||
|
||||
Reference in New Issue
Block a user