summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-08-01 13:14:45 -0400
committerChuck Miller <shadowmil@gmail.com>2009-08-01 21:41:46 -0400
commit455b56f0a3aa89fec063696ef86aa39986b21a5f (patch)
treee8c9b80143339762db66a627392e34df47e82df2 /src/map.cpp
parent5858cbe02393c64ae75952f390bd2012082bcc5b (diff)
downloadmana-client-455b56f0a3aa89fec063696ef86aa39986b21a5f.tar.gz
mana-client-455b56f0a3aa89fec063696ef86aa39986b21a5f.tar.bz2
mana-client-455b56f0a3aa89fec063696ef86aa39986b21a5f.tar.xz
mana-client-455b56f0a3aa89fec063696ef86aa39986b21a5f.zip
Remove some unused movement methods
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 81bf7313..dbecda3d 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -491,50 +491,6 @@ const std::string &Map::getName() const
return getProperty("mapname");
}
-Path Map::findSimplePath(int startX, int startY,
- int destX, int destY,
- unsigned char walkmask)
-{
- // Path to be built up (empty by default)
- Path path;
- int positionX = startX, positionY = startY;
- int directionX, directionY;
- // Checks our path up to 1 tiles, if a blocking tile is found
- // We go to the last good tile, and break out of the loop
- while(true)
- {
- directionX = destX - positionX;
- directionY = destY - positionY;
-
- if (directionX > 0)
- directionX = 1;
- else if(directionX < 0)
- directionX = -1;
-
- if (directionY > 0)
- directionY = 1;
- else if(directionY < 0)
- directionY = -1;
-
- positionX += directionX;
- positionY += directionY;
-
- if (getWalk(positionX, positionY, walkmask))
- {
- path.push_back(Position(positionX, positionY));
-
- if ((positionX == destX) && (positionY == destY))
- {
- return path;
- }
- }
- else
- {
- return path;
- }
- }
-}
-
static int const basicCost = 100;
Path Map::findPath(int startX, int startY, int destX, int destY,