From e2845dd7529a4dfe33a41e136acee116a235e54b Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Sat, 2 May 2009 13:27:36 +1200 Subject: Fix the /where command to include coordinates. --- src/commandhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-70-g09d2