diff options
author | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:11:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-07-09 14:11:44 +0000 |
commit | e942db1c8d87b7db286545d72c604e879f7aeab0 (patch) | |
tree | 4b07ef3422ee265156e020707c3bc96ecd9ed1e0 /src/client | |
parent | f39aec30f0e5c6f466681ed34bffd41150976ab9 (diff) |
Cleanup of the messaging interface.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/client.cc | 11 | ||||
-rw-r--r-- | src/client/client.h | 3 |
2 files changed, 6 insertions, 8 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; } diff --git a/src/client/client.h b/src/client/client.h index 19a760f..42b87e6 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -39,9 +39,6 @@ public: /// quit the client virtual void quit(int status); - /// sound notifications from the core - virtual void notify_sound(const char * name); - /// text notifications from the core virtual void notify_message(const core::Message::Channel channel, const std::string &message); |