summaryrefslogtreecommitdiff
path: root/src/net/playerhandler.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 00:02:23 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-03-17 00:02:23 +0100
commit452dc7f163749de0b5d698af2f022ca22c1aabb0 (patch)
tree5a84201f77bb71bc2ee2e1a4adb37220756d32b1 /src/net/playerhandler.h
parent6846acdcf0159423c188b56fc4a5f4c19f123eb7 (diff)
downloadmana-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/net/playerhandler.h')
-rw-r--r--src/net/playerhandler.h6
1 files changed, 6 insertions, 0 deletions
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