From ace3c76112a839aaad34f4343cd924412310bbd3 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 25 Jan 2020 21:19:29 +0100 Subject: Improve core.sound_play with ephemeral sounds and player exclusion --- src/client/client.cpp | 2 +- src/client/client.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/client.cpp b/src/client/client.cpp index 94b483802..6016f940e 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1106,7 +1106,7 @@ void Client::sendRemovedSounds(std::vector &soundList) pkt << (u16) (server_ids & 0xFFFF); - for (int sound_id : soundList) + for (s32 sound_id : soundList) pkt << sound_id; Send(&pkt); diff --git a/src/client/client.h b/src/client/client.h index 10608ccf9..b9807a11e 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -561,7 +561,7 @@ private: std::unordered_map m_sounds_server_to_client; // And the other way! std::unordered_map m_sounds_client_to_server; - // And relations to objects + // Relation of client id to object id std::unordered_map m_sounds_to_objects; // Map server hud ids to client hud ids -- cgit v1.2.3