From 7427fbd2525c6b81b43152a73ccbbaa97b47ec07 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 26 May 2024 14:33:05 -0700 Subject: [PATCH] add room unlock sound in swsetall --- src/ChatCommands.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 0092001c..166303cf 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -438,6 +438,7 @@ static void server_command_swsetall(shared_ptr c, const std::string&) { cmd.switch_flag_num = z; cmd.flags = 0x01; } + cmds[0].flags = 0x03; // Play room unlock sound send_command_t(l, 0x6C, 0x00, cmds); } @@ -457,6 +458,7 @@ static void proxy_command_swsetall(shared_ptr ses, c cmd.switch_flag_num = z; cmd.flags = 0x01; } + cmds[0].flags = 0x03; // Play room unlock sound ses->client_channel.send(0x6C, 0x00, &cmds, sizeof(cmds)); ses->server_channel.send(0x6C, 0x00, &cmds, sizeof(cmds)); }