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