summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-08 23:36:02 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-08 23:36:02 -0400
commit2c409c2226f848c39fa0d371b56855d011c682db (patch)
treeb17ac319bbcae37f03e305c1bdc0e32b000f8c0b /src/commandhandler.cpp
parent8ed571f3129e676c284bb9a842791cd6e17fefd1 (diff)
downloadMana-2c409c2226f848c39fa0d371b56855d011c682db.tar.gz
Mana-2c409c2226f848c39fa0d371b56855d011c682db.tar.bz2
Mana-2c409c2226f848c39fa0d371b56855d011c682db.tar.xz
Mana-2c409c2226f848c39fa0d371b56855d011c682db.zip
Makes /where return the same as the @where command.
For somereason the y coord was off by 1
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp3
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);
}