diff options
author | Dennis Friis <peavey@inspircd.org> | 2009-05-17 01:41:46 +0200 |
---|---|---|
committer | Dennis Friis <peavey@inspircd.org> | 2009-05-17 02:13:20 +0200 |
commit | afe09f20caa9ee3a690ea2b84bdaee19464b45bc (patch) | |
tree | 4616ef1377cd81747df87cda549d5d4f63b3e00d /src | |
parent | fc6b38d113e7f78af1075a37e1853e00294742e9 (diff) | |
download | mana-afe09f20caa9ee3a690ea2b84bdaee19464b45bc.tar.gz mana-afe09f20caa9ee3a690ea2b84bdaee19464b45bc.tar.bz2 mana-afe09f20caa9ee3a690ea2b84bdaee19464b45bc.tar.xz mana-afe09f20caa9ee3a690ea2b84bdaee19464b45bc.zip |
Fix offset error on where command. Both mPx/mPy and mPos vector have the extra 16,32 pixels.
Diffstat (limited to 'src')
-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); } |