diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-12 22:48:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-12 22:48:01 +0300 |
commit | 9df568d22db6eb2f6239eaa1ca5368f2501627c7 (patch) | |
tree | d79fe93d39faa677b4490d235d85bd5e7695cf3a | |
parent | 03889098f030471b88b007e03a1c5a5630434521 (diff) | |
download | manaverse-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.gz manaverse-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.bz2 manaverse-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.xz manaverse-9df568d22db6eb2f6239eaa1ca5368f2501627c7.zip |
fix warp issue after playerhandler class changes.
-rw-r--r-- | src/net/ea/playerhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 1073d5075..ed49b7ae5 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -238,11 +238,11 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg) const scrollOffsetY = (y - player_node->getTileY()) * map->getTileHeight(); } - scrollOffsetX = (x - player_node->getTileX()) - * map->getTileWidth(); - scrollOffsetY = (y - player_node->getTileY()) - * map->getTileHeight(); } + + player_node->setAction(Being::STAND); + player_node->setTileCoords(x, y); + player_node->navigateClean(); } logger->log("Adjust scrolling by %d:%d", scrollOffsetX, scrollOffsetY); |