summaryrefslogtreecommitdiff
path: root/src/game-server/map.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-09 12:09:01 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-09 12:09:01 +0100
commit8ff3e6674c1d4fc05fc1ba87f42484689fca0879 (patch)
tree0c05e984fe61d9e28e9bf014d6b4a70645d27a7e /src/game-server/map.cpp
parent57701ac70f2b81e11eedb4c01f680e46c1abadb2 (diff)
downloadmanaserv-8ff3e6674c1d4fc05fc1ba87f42484689fca0879.tar.gz
manaserv-8ff3e6674c1d4fc05fc1ba87f42484689fca0879.tar.bz2
manaserv-8ff3e6674c1d4fc05fc1ba87f42484689fca0879.tar.xz
manaserv-8ff3e6674c1d4fc05fc1ba87f42484689fca0879.zip
Removed the superfluous point struct.
It was too close from the Position class and it leads to making the server handle one or another type through the code. Still bugged me many times while making changes. Reviewed-by: Jaxad.
Diffstat (limited to 'src/game-server/map.cpp')
-rw-r--r--src/game-server/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/map.cpp b/src/game-server/map.cpp
index 8a3c3e63..e1cebd0e 100644
--- a/src/game-server/map.cpp
+++ b/src/game-server/map.cpp
@@ -203,7 +203,7 @@ Path Map::findSimplePath(int startX, int startY,
if (getWalk(positionX, positionY, walkmask))
{
- path.push_back(Position(positionX, positionY));
+ path.push_back(Point(positionX, positionY));
if ((positionX == destX) && (positionY == destY))
{
@@ -374,7 +374,7 @@ Path Map::findPath(int startX, int startY,
while (pathX != startX || pathY != startY)
{
// Add the new path node to the start of the path list
- path.push_front(Position(pathX, pathY));
+ path.push_front(Point(pathX, pathY));
// Find out the next parent
MetaTile *tile = getMetaTile(pathX, pathY);