diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 14:24:28 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-14 14:24:28 +0000 |
commit | d283db70abe904fddd8aefbd52b35d6e066dd98f (patch) | |
tree | 7bd24c75dd65872270a4b4a859c38020d82ba451 /src/being.cpp | |
parent | d7904f7b7e25bbdd7205e5c18e06d184b2078732 (diff) | |
download | mana-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.cpp | 8 |
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) |