summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-12 22:48:01 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-12 22:48:01 +0300
commit9df568d22db6eb2f6239eaa1ca5368f2501627c7 (patch)
treed79fe93d39faa677b4490d235d85bd5e7695cf3a /src/net
parent03889098f030471b88b007e03a1c5a5630434521 (diff)
downloadplus-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.gz
plus-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.bz2
plus-9df568d22db6eb2f6239eaa1ca5368f2501627c7.tar.xz
plus-9df568d22db6eb2f6239eaa1ca5368f2501627c7.zip
fix warp issue after playerhandler class changes.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/playerhandler.cpp8
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);