From 2c409c2226f848c39fa0d371b56855d011c682db Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Fri, 8 May 2009 23:36:02 -0400 Subject: Makes /where return the same as the @where command. For somereason the y coord was off by 1 --- src/commandhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 91c65f83..6265f350 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -279,7 +279,8 @@ void CommandHandler::handleWhere(const std::string &args, ChatTab *tab) std::ostringstream where; where << map_path << ", coordinates: " << (player_node->getPixelX() / 32) << ", " - << (player_node->getPixelY() / 32); + << ((player_node->getPixelY() / 32) - 1); // Not real sure why we remove 1, + // but it makes it in sync with @where tab->chatLog(where.str(), BY_SERVER); } -- cgit v1.2.3-70-g09d2