summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 727bb036c..67bf9cf73 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -287,9 +287,8 @@ impHandler2(where)
{
std::ostringstream where;
where << Game::instance()->getCurrentMapName() << ", coordinates: "
- << ((player_node->getPixelX() - 16) / 32) << ", "
- << ((player_node->getPixelY() - 32) / 32);
-
+ << ((player_node->getPixelX() - mapTileSize / 2) / mapTileSize)
+ << ", " << ((player_node->getPixelY() - mapTileSize) / mapTileSize);
tab->chatLog(where.str(), BY_SERVER);
}