summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2009-07-02 20:51:41 -0400
committerRoderic Morris <roderic@ccs.neu.edu>2009-07-02 20:51:41 -0400
commite0de8a124bf94b79d9d64e5406b21e8598a05d56 (patch)
tree45b24bbe874ce9edb364dda3a188a5e539356fe2 /src/player.cpp
parent0bca1b9756a93d876cbf4a411b47634b87775162 (diff)
downloadmana-client-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.gz
mana-client-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.bz2
mana-client-e0de8a124bf94b79d9d64e5406b21e8598a05d56.tar.xz
mana-client-e0de8a124bf94b79d9d64e5406b21e8598a05d56.zip
Fix building the ea client.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/player.cpp b/src/player.cpp
index 597fb14b..3b2271bd 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -149,20 +149,6 @@ void Player::logic()
}
#endif
-Path Player::findPath()
-{
- Path path;
-
- if (mMap)
- {
- path = mMap->findSimplePath(getPosition().x / 32, getPosition().y / 32,
- getDestination().x / 32, getDestination().y / 32,
- getWalkMask());
- }
-
- return path;
-}
-
Being::Type Player::getType() const
{
return PLAYER;
@@ -270,6 +256,20 @@ void Player::updateCoords()
#ifdef TMWSERV_SUPPORT
+Path Player::findPath()
+{
+ Path path;
+
+ if (mMap)
+ {
+ path = mMap->findSimplePath(getPosition().x / 32, getPosition().y / 32,
+ getDestination().x / 32, getDestination().y / 32,
+ getWalkMask());
+ }
+
+ return path;
+}
+
Guild* Player::addGuild(short guildId, short rights)
{
Guild *guild = new Guild(guildId, rights);