diff options
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 11 |
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; } |