From b347948ba3e4aff7e553ce88b70594abee1e1ba0 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sat, 2 May 2009 17:27:37 -0400 Subject: Fixed compile error on TMWServ builds --- src/commandhandler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2