Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc
index 8da8b1b..aa3db1a 100644
--- a/src/core/netconnection.cc
+++ b/src/core/netconnection.cc
@@ -265,6 +265,7 @@ void NetConnection::transmit()
* disconnect
* msg info <text>
* msg public <name> <text>
+ * msg snd <soundname>
* die
* ent
* frame
@@ -289,9 +290,13 @@ void NetConnection::parse_incoming_message(const std::string & message)
// FIXME - separate sender nickname
if (message.size() > 11) {
application()->notify_message(message.substr(11));
- application()->notify_sound("ui/chat.wav");
+ application()->notify_sound("com/chat.wav");
}
+ } else if (level == "snd") {
+ if (message.size() > 8) {
+ application()->notify_sound(message.substr(8).c_str());
+ }
}
}
} else if (command == "connect") {