diff options
Diffstat (limited to 'src')
-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); |