summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-10 14:39:16 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-10 14:39:16 +0000
commit2136d196ef0e1dbb6d085c163443d83ec0766610 (patch)
tree5dd19a7f0b782f7e566cc6460caf6a5807ce3311 /src/map.cpp
parentd7e809c18ce55830fdc87eba29f30a6dfc4f222d (diff)
downloadmana-2136d196ef0e1dbb6d085c163443d83ec0766610.tar.gz
mana-2136d196ef0e1dbb6d085c163443d83ec0766610.tar.bz2
mana-2136d196ef0e1dbb6d085c163443d83ec0766610.tar.xz
mana-2136d196ef0e1dbb6d085c163443d83ec0766610.zip
Fixed PlayerBox to cope with no hair as well, and fixed using Makefile.cvs a
bit, to generate the configure.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index d7ccb4d1..c4d9493b 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -79,6 +79,7 @@ Tile::Tile():
{
}
+
Location::Location(int x, int y, Tile *tile):
x(x), y(y), tile(tile)
{
@@ -89,6 +90,7 @@ bool Location::operator< (const Location &loc) const
return tile->Fcost < loc.tile->Fcost;
}
+
Map::Map():
width(0), height(0),
onClosedList(1), onOpenList(2)
@@ -224,6 +226,8 @@ PATH_NODE *Map::findPath(int startX, int startY, int destX, int destY)
Location curr = openList.top();
openList.pop();
curr.tile->whichList = onClosedList;
+
+
}
// Two new values to indicate wether a tile is on the open or closed list,