From 83260d5037a835da1965db0a0b789f69cfe39004 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 28 Oct 2025 22:24:38 -0700 Subject: [PATCH] fix $sound in lobby --- src/ChatCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 2ca8e4cf..f7673585 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -2375,7 +2375,7 @@ ChatCommandDefinition cc_sound( uint32_t sound_id = stoul(echo_to_all ? a.text.substr(1) : a.text, nullptr, 16); auto l = a.c->require_lobby(); - uint8_t area = l->area_for_floor(a.c->version(), a.c->floor); + uint8_t area = l->is_game() ? l->area_for_floor(a.c->version(), a.c->floor) : 0x0F; G_PlaySoundFromPlayer_6xB2 cmd = {{0xB2, 0x03, 0x0000}, area, 0x00, a.c->lobby_client_id, sound_id}; if (!echo_to_all) { send_command_t(a.c, 0x60, 0x00, cmd);