Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-09 14:11:44 +0000
committerStijn Buys <ingar@osirion.org>2011-07-09 14:11:44 +0000
commite942db1c8d87b7db286545d72c604e879f7aeab0 (patch)
tree4b07ef3422ee265156e020707c3bc96ecd9ed1e0 /src/client/client.cc
parentf39aec30f0e5c6f466681ed34bffd41150976ab9 (diff)
Cleanup of the messaging interface.
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/client.cc b/src/client/client.cc
index b514e57..7d4b7e6 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -341,11 +341,6 @@ void Client::notify_zonechange()
render::unload();
}
-void Client::notify_sound(const char *name)
-{
- audio::play(name);
-}
-
void Client::notify_message(const char *message)
{
std::string text(message);
@@ -379,6 +374,12 @@ void Client::notify_message(const core::Message::Channel channel, const std::str
audio::play("com/priv");
break;
+ case core::Message::Sound: // Sound event
+
+ audio::play(message.c_str());
+ // a sound event prints nothing to the console
+ return;
+
default:
break;
}