diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-08 23:36:02 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-08 23:36:02 -0400 |
commit | 2c409c2226f848c39fa0d371b56855d011c682db (patch) | |
tree | b17ac319bbcae37f03e305c1bdc0e32b000f8c0b /src | |
parent | 8ed571f3129e676c284bb9a842791cd6e17fefd1 (diff) | |
download | mana-client-2c409c2226f848c39fa0d371b56855d011c682db.tar.gz mana-client-2c409c2226f848c39fa0d371b56855d011c682db.tar.bz2 mana-client-2c409c2226f848c39fa0d371b56855d011c682db.tar.xz mana-client-2c409c2226f848c39fa0d371b56855d011c682db.zip |
Makes /where return the same as the @where command.
For somereason the y coord was off by 1
Diffstat (limited to 'src')
-rw-r--r-- | src/commandhandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |