diff options
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r-- | src/net/beinghandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index 4ff92b63..ac2801c2 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -422,16 +422,16 @@ void BeingHandler::handleBeingsMoveMessage(MessageIn &msg) int sx = msg.readShort(), sy = msg.readShort(), dx = msg.readShort(), dy = msg.readShort(); bool update = being != player_node; // the local player already knows where he wants to go - if (abs(being->mX - sx / 32) + abs(being->mY - sy / 32) > 4) + if (abs(being->mX - sx) + abs(being->mY - sy) > 4 * 32) { // crude handling of synchronization messages - being->mX = sx / 32; - being->mY = sy / 32; + being->mX = sx; + being->mY = sy; update = true; } if (update) { - being->setDestination(dx / 32, dy / 32); + being->setDestination(dx, dy); } } } |