From 5c4fd7ac4fc5121f7ac620fc4ffdfae939420ba1 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 22 Feb 2015 10:29:12 +0100 Subject: Core/DataStores: Added tables for all loaded DB2 stores --- src/server/game/Movement/Waypoints/Path.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/server/game/Movement/Waypoints') diff --git a/src/server/game/Movement/Waypoints/Path.h b/src/server/game/Movement/Waypoints/Path.h index bb8abc37eb3..844089cf393 100644 --- a/src/server/game/Movement/Waypoints/Path.h +++ b/src/server/game/Movement/Waypoints/Path.h @@ -28,8 +28,8 @@ struct PathNode PathNode(float _x, float _y, float _z): x(_x), y(_y), z(_z) { } float x, y, z; }; -template +template class Path { public: @@ -37,7 +37,7 @@ class Path bool empty() const { return i_nodes.empty(); } void resize(unsigned int sz) { i_nodes.resize(sz); } void clear() { i_nodes.clear(); } - void erase(uint32 idx) { i_nodes.erase(i_nodes.begin()+idx); } + void erase(uint32 idx) { i_nodes.erase(i_nodes.begin() + idx); } void crop(unsigned int start, unsigned int end) { while (start && !i_nodes.empty()) @@ -56,10 +56,10 @@ class Path float GetTotalLength(uint32 start, uint32 end) const { float len = 0.0f; - for (uint32 idx=start+1; idx < end; ++idx) + for (uint32 idx = start + 1; idx < end; ++idx) { PathNode const& node = i_nodes[idx]; - PathNode const& prev = i_nodes[idx-1]; + PathNode const& prev = i_nodes[idx - 1]; float xd = node.x - prev.x; float yd = node.y - prev.y; float zd = node.z - prev.z; @@ -76,7 +76,7 @@ class Path if (curnode > 0) { - PathNode const& node = i_nodes[curnode-1]; + PathNode const& node = i_nodes[curnode - 1]; float xd = x - node.x; float yd = y - node.y; float zd = z - node.z; @@ -95,6 +95,4 @@ class Path std::deque i_nodes; }; -typedef Path SimplePath; - #endif -- cgit v1.2.3