From c3ac3fb3b95d0abcd2cbc51e8ff1f2498cc6841b Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 24 Oct 2009 10:58:58 -0600 Subject: REplace instances of TMW with Mana --- src/beingmanager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/beingmanager.cpp') 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 -- cgit v1.2.3-70-g09d2