summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-06 23:44:17 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-06 23:51:40 +0100
commit3b7d0af6f0c61e1087838c14519e099dbbe47ec2 (patch)
tree97ef59eab8e4982ef1a7704e39a59789349cb23f
parentc811075b49a56f7c7f4e3597ed8e1dca359e9586 (diff)
downloadmana-3b7d0af6f0c61e1087838c14519e099dbbe47ec2.tar.gz
mana-3b7d0af6f0c61e1087838c14519e099dbbe47ec2.tar.bz2
mana-3b7d0af6f0c61e1087838c14519e099dbbe47ec2.tar.xz
mana-3b7d0af6f0c61e1087838c14519e099dbbe47ec2.zip
Made /where response include position information
Change ported from Aethyra.
-rw-r--r--src/gui/chat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 66f6600f..1c7629ae 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -327,7 +327,10 @@ ChatWindow::chatSend(const std::string &nick, std::string msg)
}
else if (msg.substr(0, IS_WHERE_LENGTH) == IS_WHERE)
{
- chatLog(map_path, BY_SERVER);
+ // Display the current map, X, and Y
+ std::ostringstream where;
+ where << map_path << " " << player_node->mX << "," << player_node->mY;
+ chatLog(where.str(), BY_SERVER);
}
else if (msg.substr(0, IS_WHO_LENGTH) == IS_WHO)
{