aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-02-23 19:58:22 +0100
committerTreeston <treeston.mmoc@gmail.com>2018-02-23 19:58:22 +0100
commit9f92896c52dfdaaad3a7eb66a780a7415dc12546 (patch)
tree1ced1898855236981b8490ddb13f69ca0e5a7a2a
parent27e7906814f2696863f5ab0488c59ffa347d8cc9 (diff)
Core/GameObject: Force compatibility mode for stupid ridiculous junk legacy hack gameobjects, ref 27e7906.
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index d82cd600f69..a7ce1810c0e 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -1024,6 +1024,12 @@ bool GameObject::LoadFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap
}
else
{
+ if (!m_respawnCompatibilityMode)
+ {
+ TC_LOG_WARN("sql.sql", "GameObject %u (SpawnID %u) is not spawned by default, but tries to use a non-hack spawn system. This will not work. Defaulting to compatibility mode.", entry, spawnId);
+ m_respawnCompatibilityMode = true;
+ }
+
m_spawnedByDefault = false;
m_respawnDelayTime = -data->spawntimesecs;
m_respawnTime = 0;