diff options
author | Bertram <bertram@cegetel.net> | 2010-02-09 03:18:35 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-09 03:20:48 +0100 |
commit | b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd (patch) | |
tree | 2d110cf418fab5d733c5172a52aaaffa74c2d693 /src/net/manaserv/playerhandler.cpp | |
parent | 6a6b36fa2d19a6ea9d39b975354709e7ad82281d (diff) | |
download | mana-client-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.gz mana-client-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.bz2 mana-client-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.tar.xz mana-client-b7f93f0b2ec91e04d3ed9035c9e21015b8b57cdd.zip |
Got successfully rid of tile width/height fallback values as asked by Jaxad.
But I added some logs when speed and other actions where refused due to game/map
uninitialized. This could help.
Diffstat (limited to 'src/net/manaserv/playerhandler.cpp')
-rw-r--r-- | src/net/manaserv/playerhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp index 042e0284..23158cc5 100644 --- a/src/net/manaserv/playerhandler.cpp +++ b/src/net/manaserv/playerhandler.cpp @@ -53,13 +53,13 @@ extern Window *buySellDialog; /** @see in game.cpp */ extern const int MILLISECONDS_IN_A_TICK; -/** @see in map.cpp */ -extern const int DEFAULT_TILE_WIDTH; - -/* Max. distance we are willing to scroll after a teleport; +/** + * Max. distance we are willing to scroll after a teleport; * everything beyond will reset the port hard. + * 32 is the nominal tile width/height. + * @todo: Make this parameter read from config. */ -static const int MAP_TELEPORT_SCROLL_DISTANCE = 8 * DEFAULT_TILE_WIDTH; +static const int MAP_TELEPORT_SCROLL_DISTANCE = 8 * 32; /** * Listener used for handling the overweigth message. |