diff options
author | Freeyorp <Freeyorp101@NOSPAM@hotmail.com> | 2009-05-02 13:27:36 +1200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-02 09:45:32 -0600 |
commit | e2845dd7529a4dfe33a41e136acee116a235e54b (patch) | |
tree | fdb55953c9f4f56c6cbbf0111b5b60a0bfeecbcc /src | |
parent | d40c669b3d8e11d2ddeea43cbc8d7c6a053c9da2 (diff) | |
download | mana-client-e2845dd7529a4dfe33a41e136acee116a235e54b.tar.gz mana-client-e2845dd7529a4dfe33a41e136acee116a235e54b.tar.bz2 mana-client-e2845dd7529a4dfe33a41e136acee116a235e54b.tar.xz mana-client-e2845dd7529a4dfe33a41e136acee116a235e54b.zip |
Fix the /where command to include coordinates.
Diffstat (limited to 'src')
-rw-r--r-- | src/commandhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index f969cb43..61613654 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -277,8 +277,9 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) void CommandHandler::handleWhere(const std::string &args, ChatTab *tab) { - // TODO: add position - tab->chatLog(map_path, BY_SERVER); + std::ostringstream where; + where << map_path << ", coordinates: " << player_node->mX << ", " << player_node->mY; + tab->chatLog(where.str(), BY_SERVER); } void CommandHandler::handleWho(const std::string &args, ChatTab *tab) |