summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-02 17:27:37 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-02 17:27:37 -0400
commitb347948ba3e4aff7e553ce88b70594abee1e1ba0 (patch)
tree35c2ab6b90755b84f156f6dab2ef3262c44015b6 /src/commandhandler.cpp
parent672f0be78bbd818a67728a0446cb0caf153c5d97 (diff)
downloadmana-b347948ba3e4aff7e553ce88b70594abee1e1ba0.tar.gz
mana-b347948ba3e4aff7e553ce88b70594abee1e1ba0.tar.bz2
mana-b347948ba3e4aff7e553ce88b70594abee1e1ba0.tar.xz
mana-b347948ba3e4aff7e553ce88b70594abee1e1ba0.zip
Fixed compile error on TMWServ builds
Diffstat (limited to 'src/commandhandler.cpp')
-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);
}