From 452dc7f163749de0b5d698af2f022ca22c1aabb0 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 17 Mar 2011 00:02:23 +0100 Subject: 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. --- src/map.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map.h') diff --git a/src/map.h b/src/map.h index 22ca68c4..fae8af50 100644 --- a/src/map.h +++ b/src/map.h @@ -285,6 +285,14 @@ class Map : public Properties int x, int y) const { return checkNodeOffsets(radius, walkMask, Position(x, y)); } + /** + * 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. */ -- cgit v1.2.3-70-g09d2