diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-22 18:51:36 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-06-22 18:51:36 +0200 |
commit | ec3c689c64922baf4a9f99bc6e9345e0a80403e8 (patch) | |
tree | 7d8a17271650f199e7f90b47a4f40532b28de25d /src/net/tmwa/charserverhandler.cpp | |
parent | 2e08f723375023e203654381b2a49d63c9565824 (diff) | |
download | mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.gz mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.bz2 mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.tar.xz mana-client-ec3c689c64922baf4a9f99bc6e9345e0a80403e8.zip |
Applied fixes requested by cody.
- Made the map teleport distance fixed for manaserv.
- Small cleanups.
The branch is considered reviewed by: Cody.
Resolves Mana-Mantis: #74.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index dcc68fb3..1df84b84 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -186,8 +186,8 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg) mNetwork->disconnect(); Client::setState(STATE_CHANGE_MAP); Map *map = player_node->getMap(); - int tileWidth = map->getTileWidth(); - int tileHeight = map->getTileHeight(); + const int tileWidth = map->getTileWidth(); + const int tileHeight = map->getTileHeight(); player_node->setPosition(Vector(x * tileWidth + tileWidth / 2, y * tileHeight + tileHeight / 2)); player_node->setMap(0); |