summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-15 01:38:18 +0200
committerBertram <bertram@cegetel.net>2009-10-15 01:38:18 +0200
commit2f55dd130c886376a45c9d0054dbd987cc055155 (patch)
treea0a1f25a6310b9e29ab10c442ba10cb2a1a1145e /src/map.cpp
parentb4befc985875588a4b454b112b8b79a94c26e5e6 (diff)
downloadmana-client-2f55dd130c886376a45c9d0054dbd987cc055155.tar.gz
mana-client-2f55dd130c886376a45c9d0054dbd987cc055155.tar.bz2
mana-client-2f55dd130c886376a45c9d0054dbd987cc055155.tar.xz
mana-client-2f55dd130c886376a45c9d0054dbd987cc055155.zip
Speed code unification part 3: Made the client handle the speed in tiles per second in TMWserv.
While I was on it, I tweaked the default speed value to its final 6 tiles per second value, which seems to be nice to me. Another notice, the server does already send speed value to the player. The keyboard movement protocol is one step ahead Release Candidate, enjoy ;)
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 56e13697..843b8308 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -41,6 +41,11 @@
extern volatile int tick_time;
/**
+ * The used side-length for tiles
+ */
+const int DEFAULT_TILE_SIDE_LENGTH = 32;
+
+/**
* A location on a tile map. Used for pathfinding, open list.
*/
struct Location