diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 00:02:23 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 00:02:23 +0100 |
commit | 452dc7f163749de0b5d698af2f022ca22c1aabb0 (patch) | |
tree | 5a84201f77bb71bc2ee2e1a4adb37220756d32b1 /src/map.h | |
parent | 6846acdcf0159423c188b56fc4a5f4c19f123eb7 (diff) | |
download | mana-452dc7f163749de0b5d698af2f022ca22c1aabb0.tar.gz mana-452dc7f163749de0b5d698af2f022ca22c1aabb0.tar.bz2 mana-452dc7f163749de0b5d698af2f022ca22c1aabb0.tar.xz mana-452dc7f163749de0b5d698af2f022ca22c1aabb0.zip |
Now the client centers the pixel positions when using tA.
I made it so that the behaviour can be changed with only
a boolean setting in the playerhandler.
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -287,6 +287,14 @@ class Map : public Properties /** * Find a pixel path from one location to the next. + * Path node are centered on their corresponding tiles in that case. + */ + Path findTilePath(int startPixelX, int startPixelY, int endPixelX, + int endPixelY, unsigned char walkMask, + int maxCost = 20); + + /** + * Find a pixel path from one location to the next. */ Path findPixelPath(int startPixelX, int startPixelY, int destPixelX, int destPixelY, |