From 21d785397e58aa6c62e2e19353d61df73e69a5a0 Mon Sep 17 00:00:00 2001 From: Bertram Date: Tue, 23 Feb 2010 18:47:19 +0100 Subject: Got rid of superfluous Destination coordinates in LocalPlayer. This will help simplifying setDestination() calls. No regression seen in both client. --- src/localplayer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 8133bf4a..6f63d799 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -98,7 +98,6 @@ LocalPlayer::LocalPlayer(int id, int job): mLastAction(-1), mWalkingDir(0), mPathSetByMouse(false), - mDestX(0), mDestY(0), mInventory(new Inventory(Net::getInventoryHandler() ->getSize(Net::InventoryHandler::INVENTORY))), mLocalWalkTime(-1), @@ -516,11 +515,8 @@ void LocalPlayer::setDestination(int x, int y) } // Only send a new message to the server when destination changes - if (x != mDestX || y != mDestY) + if (x != mDest.x || y != mDest.y) { - mDestX = x; - mDestY = y; - Being::setDestination(x, y); Net::getPlayerHandler()->setDestination(x, y, mDirection); } -- cgit v1.2.3-60-g2f50