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/net/playerhandler.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/playerhandler.h') diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index 23277062..5d94a093 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -74,6 +74,12 @@ class PlayerHandler * Convert the original speed in pixel per tick for internal use. */ virtual Vector getPixelsPerTickMoveSpeed(Vector speed, Map *map = 0) = 0; + + /** + * Tells whether the client has to use pixel paths. + * Return false when tiles-center positions only are to be used. + */ + virtual bool usePixelPrecision() = 0; }; } // namespace Net -- cgit v1.2.3-60-g2f50