summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 7daceb0f..8e75333f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -604,8 +604,8 @@ void LocalPlayer::pickUp(FloorItem *item)
}
else
{
- setDestination(item->getPixelX() + tileWidth / 2,
- item->getPixelY() + tileHeight / 2);
+ setDestination(item->getTileX() * tileWidth + tileWidth / 2,
+ item->getTileY() * tileHeight + tileHeight / 2);
mPickUpTarget = item;
}
}