summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commandhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 61613654..62e343f6 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -278,7 +278,9 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab)
void CommandHandler::handleWhere(const std::string &args, ChatTab *tab)
{
std::ostringstream where;
- where << map_path << ", coordinates: " << player_node->mX << ", " << player_node->mY;
+ where << map_path << ", coordinates: "
+ << (player_node->getPixelX() / 32) + 16
+ << (player_node->getPixelY() / 32) + 16;
tab->chatLog(where.str(), BY_SERVER);
}