diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-24 10:58:58 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-24 10:58:58 -0600 |
commit | c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b (patch) | |
tree | 709fda8a3974b5e73d4cd4d7e688c544ce03ed96 /src/beingmanager.cpp | |
parent | 86e5e4c5bd29abcd90d21a64fdea7eac73665356 (diff) | |
download | mana-c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b.tar.gz mana-c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b.tar.bz2 mana-c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b.tar.xz mana-c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b.zip |
REplace instances of TMW with Mana
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index 0b8f71b5..2ad3f0fd 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -26,8 +26,8 @@ #include "npc.h" #include "player.h" -#ifdef TMWSERV_SUPPORT -#include "net/tmwserv/protocol.h" +#ifdef MANASERV_SUPPORT +#include "net/manaserv/protocol.h" #endif #include "utils/dtor.h" @@ -215,7 +215,7 @@ Being *BeingManager::findNearestLivingBeing(int x, int y, int maxdist, Being *closestBeing = NULL; int dist = 0; -#ifdef TMWSERV_SUPPORT +#ifdef MANASERV_SUPPORT //Why do we do this: //For some reason x,y passed to this function is always //in map coords, while down below its in pixels @@ -233,7 +233,7 @@ Being *BeingManager::findNearestLivingBeing(int x, int y, int maxdist, for (; itr != itr_end; ++itr) { Being *being = (*itr); -#ifdef TMWSERV_SUPPORT +#ifdef MANASERV_SUPPORT const Vector &pos = being->getPosition(); int d = abs(((int) pos.x) - x) + abs(((int) pos.y) - y); #else @@ -257,7 +257,7 @@ Being *BeingManager::findNearestLivingBeing(Being *aroundBeing, int maxdist, { Being *closestBeing = NULL; int dist = 0; -#ifdef TMWSERV_SUPPORT +#ifdef MANASERV_SUPPORT const Vector &apos = aroundBeing->getPosition(); int x = apos.x; int y = apos.y; @@ -271,7 +271,7 @@ Being *BeingManager::findNearestLivingBeing(Being *aroundBeing, int maxdist, i != i_end; ++i) { Being *being = (*i); -#ifdef TMWSERV_SUPPORT +#ifdef MANASERV_SUPPORT const Vector &pos = being->getPosition(); int d = abs(((int) pos.x) - x) + abs(((int) pos.y) - y); #else |