aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-02-23 19:58:22 +0100
committerfunjoker <funjoker109@gmail.com>2021-08-08 21:21:34 +0200
commit65b8dafb537dc41f9b46f44fa03c6466915fd119 (patch)
tree9994bbf3bb524975ae9e087eb9b2348f238565a7 /src
parentde3eb7b298468d87b33a29e1baaa50508e90b562 (diff)
Core/GameObject: Force compatibility mode for stupid ridiculous junk legacy hack gameobjects, ref 27e7906.
(cherry picked from commit 9f92896c52dfdaaad3a7eb66a780a7415dc12546)
Diffstat (limited to 'src')
-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 22ebbafdec8..f231ef6a683 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -1176,6 +1176,12 @@ bool GameObject::LoadFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap
}
else
{
+ if (!m_respawnCompatibilityMode)
+ {
+ TC_LOG_WARN("sql.sql", "GameObject %u (SpawnID " UI64FMTD ") 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;