diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-06-08 23:07:00 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-06-08 23:07:50 +0200 |
commit | 2a60ed3f85004c872eb9d0ae39d4aa1c47626543 (patch) | |
tree | 45db39c43ebe0b2ae8b3dc1d061d000d02c2e5a5 /src/map.h | |
parent | 32457dd5b2f9431d4f5d503dc8b090a9c1b7f944 (diff) | |
download | mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.gz mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.bz2 mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.tar.xz mana-2a60ed3f85004c872eb9d0ae39d4aa1c47626543.zip |
Reintroduced the 'occupied' check for eAthena movement code
Makes sure the player walks around other players and beings when
reasonably possible. This was meant to be based on the blockmask stuff,
but I half removed that a few months ago.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -227,6 +227,13 @@ class Map : public Properties bool getWalk(int x, int y, unsigned char walkmask = BLOCKMASK_WALL) const; +#ifdef EATHENA_SUPPORT + /** + * Tells whether a tile is occupied by a being. + */ + bool occupied(int x, int y) const; +#endif + /** * Returns the width of this map in tiles. */ |