summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-03 16:56:18 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-03 16:56:18 -0700
commitb66d0b55a671af8193ae400920b0bf7bec82eae8 (patch)
treed38e71dae0485096ba4d24cf53101c57a0287d50 /src/map.cpp
parent53a6f9d15f3b3690d5ced9251f38608bf5585980 (diff)
downloadmana-client-b66d0b55a671af8193ae400920b0bf7bec82eae8.tar.gz
mana-client-b66d0b55a671af8193ae400920b0bf7bec82eae8.tar.bz2
mana-client-b66d0b55a671af8193ae400920b0bf7bec82eae8.tar.xz
mana-client-b66d0b55a671af8193ae400920b0bf7bec82eae8.zip
Remove some unneeded _SUPPORt ifdefs
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 843b8308..ba54dcd1 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -464,7 +464,6 @@ bool Map::getWalk(int x, int y, unsigned char walkmask) const
return !(mMetaTiles[x + y * mWidth].blockmask & walkmask);
}
-#ifdef EATHENA_SUPPORT
bool Map::occupied(int x, int y) const
{
const Beings &beings = beingManager->getAll();
@@ -479,7 +478,6 @@ bool Map::occupied(int x, int y) const
return false;
}
-#endif
bool Map::contains(int x, int y) const
{
@@ -611,14 +609,12 @@ Path Map::findPath(int startX, int startY, int destX, int destY,
++Gcost;
}
-#ifdef EATHENA_SUPPORT
// It costs extra to walk through a being (needs to be enough
// to make it more attractive to walk around).
if (occupied(x, y))
{
Gcost += 3 * basicCost;
}
-#endif
// Skip if Gcost becomes too much
// Warning: probably not entirely accurate