diff options
author | ModoX <moardox@gmail.com> | 2024-01-05 17:56:19 +0100 |
---|---|---|
committer | funjoker <funjoker109@gmail.com> | 2024-01-09 13:15:49 +0100 |
commit | e1737f0f72e971b63876de52130a458452a4de90 (patch) | |
tree | 4a773b8a356f44a33ec16515fccd91486da57c83 /src/server/game/Globals/ObjectMgr.cpp | |
parent | 9504640b340e2e64384a7bea1549f1a5c89fd957 (diff) |
Core/Waypoints: Refactor to split data into path and node related info in db (#29506)
(cherry picked from commit 12186ef8573f60abeff4747da58767ee71092600)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 17dc0b8dc59..982591cad03 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -741,7 +741,7 @@ void ObjectMgr::LoadCreatureTemplateAddons() uint32 oldMSTime = getMSTime(); // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 - QueryResult result = WorldDatabase.Query("SELECT entry, path_id, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_template_addon"); + QueryResult result = WorldDatabase.Query("SELECT entry, PathId, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_template_addon"); if (!result) { @@ -764,7 +764,7 @@ void ObjectMgr::LoadCreatureTemplateAddons() CreatureAddon& creatureAddon = _creatureTemplateAddonStore[entry]; - creatureAddon.path_id = fields[1].GetUInt32(); + creatureAddon.PathId = fields[1].GetUInt32(); creatureAddon.mount = fields[2].GetUInt32(); creatureAddon.standState = fields[3].GetUInt8(); creatureAddon.animTier = fields[4].GetUInt8(); @@ -1204,7 +1204,7 @@ void ObjectMgr::LoadCreatureAddons() uint32 oldMSTime = getMSTime(); // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 - QueryResult result = WorldDatabase.Query("SELECT guid, path_id, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_addon"); + QueryResult result = WorldDatabase.Query("SELECT guid, PathId, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_addon"); if (!result) { @@ -1228,8 +1228,8 @@ void ObjectMgr::LoadCreatureAddons() CreatureAddon& creatureAddon = _creatureAddonStore[guid]; - creatureAddon.path_id = fields[1].GetUInt32(); - if (creData->movementType == WAYPOINT_MOTION_TYPE && !creatureAddon.path_id) + creatureAddon.PathId = fields[1].GetUInt32(); + if (creData->movementType == WAYPOINT_MOTION_TYPE && !creatureAddon.PathId) { const_cast<CreatureData*>(creData)->movementType = IDLE_MOTION_TYPE; TC_LOG_ERROR("sql.sql", "Creature (GUID {}) has movement type set to WAYPOINT_MOTION_TYPE but no path assigned", guid); |