summaryrefslogtreecommitdiff
path: root/src/game-server/monster.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-09 17:34:25 +0200
committerBertram <bertram@cegetel.net>2009-10-09 17:34:25 +0200
commit3d035402ebffd2da05421125501d2ef4990d5bd7 (patch)
tree9f7c3e3008c5d280d56d9a77a0c259c757af4749 /src/game-server/monster.cpp
parent1102bdc2e5a9e52b621cf58d68d0065faba2b84c (diff)
downloadmanaserv-3d035402ebffd2da05421125501d2ef4990d5bd7.tar.gz
manaserv-3d035402ebffd2da05421125501d2ef4990d5bd7.tar.bz2
manaserv-3d035402ebffd2da05421125501d2ef4990d5bd7.tar.xz
manaserv-3d035402ebffd2da05421125501d2ef4990d5bd7.zip
Mostly synced the client and server code for path finding.
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r--src/game-server/monster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index af2bc7aa..4d13ac0e 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -349,7 +349,7 @@ int Monster::calculatePositionPriority(Point position, int targetPriority)
return targetPriority *= range;
}
- std::list<PATH_NODE> path;
+ Path path;
path = getMap()->getMap()->findPath(thisPos.x / 32, thisPos.y / 32,
position.x / 32, position.y / 32,
getWalkMask(),