diff options
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 262c956..fd844aa 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -631,7 +631,7 @@ void NetConnection::parse_incoming_message(const std::string & message) } } else if (level == "snd") { if (message.size() > 8) { - application()->notify_sound(message.substr(8).c_str()); + application()->notify_message(Message::Sound, message.substr(8)); } } } @@ -768,7 +768,7 @@ void NetConnection::parse_incoming_message(const std::string & message) } if (!player) { - player = new Player(); + player = new Player(0); game()->players().push_back(player); game()->set_playerlist_timestamp(game()->timestamp()); } |