Core/Movement: add velocity field to waypoint_data to allow specifying custom speed value for waypoints and cyclic splines

* standartized member naming in WaypointNode and WaypointPath struct
This commit is contained in:
Ovahlord committed 2020-09-24 14:30:48 +02:00
1 parent 8bbe17c684
commit 361ac2292b
12 files changed
+144 -133

No files matched your search

+2 -2
View File
@@ -79,8 +79,8 @@ void SystemMgr::LoadScriptWaypoints()
TC_LOG_ERROR("sql.sql", "SystemMgr: DB table script_waypoint has waypoint for creature entry %u, but creature does not have ScriptName defined and then useless.", entry);
WaypointPath& path = _waypointStore[entry];
path.id = entry;
path.nodes.emplace_back(id, x, y, z, 0.f, waitTime);
path.Id = entry;
path.Nodes.emplace_back(id, x, y, z, 0.f, 0.f, waitTime);
++count;
} while (result->NextRow());