diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-18 19:22:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-18 19:22:39 +0000 |
commit | 2f4c20a0b6fa0397d623d883ee48ba59563f1e2f (patch) | |
tree | 2186c4ada36a9bc832a89c662029d3b12bf1840e /src/core/netconnection.cc | |
parent | cc0a133a616aeff57887b27497e4a978b5697c04 (diff) |
standard hail
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 7 |
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") { |