diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-05-17 01:41:46 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-17 22:21:01 +0200 |
commit | 7657ec87dcae8dd12186c65448cb6fe743849e4d (patch) | |
tree | 517a6d195aaa9d014ebd35cadeb31ee5b17787f7 /src/commandhandler.cpp | |
parent | 91bd2b5862242c88cfe999ee578febf97dc21939 (diff) | |
download | mana-client-7657ec87dcae8dd12186c65448cb6fe743849e4d.tar.gz mana-client-7657ec87dcae8dd12186c65448cb6fe743849e4d.tar.bz2 mana-client-7657ec87dcae8dd12186c65448cb6fe743849e4d.tar.xz mana-client-7657ec87dcae8dd12186c65448cb6fe743849e4d.zip |
Fix offset error on where command. Both mPx/mPy and mPos vector have the extra 16,32 pixels.
(cherry picked from commit afe09f20caa9ee3a690ea2b84bdaee19464b45bc)
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 462cb3b9..f2fafed4 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -279,9 +279,9 @@ void CommandHandler::handleWhere(const std::string &args, ChatTab *tab) { std::ostringstream where; where << map_path << ", coordinates: " - << (player_node->getPixelX() / 32) << ", " - << ((player_node->getPixelY() / 32) - 1); // Not real sure why we remove 1, - // but it makes it in sync with @where + << ((player_node->getPixelX() - 16) / 32) << ", " + << ((player_node->getPixelY() - 32) / 32); + tab->chatLog(where.str(), BY_SERVER); } |