aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-02-23 19:52:32 +0100
committerTreeston <treeston.mmoc@gmail.com>2018-02-23 19:52:56 +0100
commit27e7906814f2696863f5ab0488c59ffa347d8cc9 (patch)
tree6f318bf78a7c723f676d230e27a3ba73b6958099 /src
parent1074a9b053c7d1fbff1321bf95b15d7be1ee669f (diff)
Core/GameObject: fix stupid ridiculous junk legacy hack code with negative gobj respawn time to work again
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index 7e55bb33c0c..d82cd600f69 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -1225,6 +1225,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()