summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-14 14:24:28 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-14 14:24:28 +0000
commitd283db70abe904fddd8aefbd52b35d6e066dd98f (patch)
tree7bd24c75dd65872270a4b4a859c38020d82ba451 /src/being.cpp
parentd7904f7b7e25bbdd7205e5c18e06d184b2078732 (diff)
downloadmana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.gz
mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.bz2
mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.tar.xz
mana-d283db70abe904fddd8aefbd52b35d6e066dd98f.zip
Added background to minimap. Only used in Tonori Desert map for now, and its
style is up for discussion.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 80de74e1..7ed73b8f 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -203,7 +203,13 @@ void Being::setDestination(int destX, int destY)
{
this->destX = destX;
this->destY = destY;
- setPath(tiledMap->findPath(x, y, destX, destY));
+
+ Map *map = engine->getCurrentMap();
+
+ if (map != NULL)
+ {
+ setPath(map->findPath(x, y, destX, destY));
+ }
}
void Being::setHairColor(int color)