From 7decab75c21aac687670d26477087200c314cecc Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 24 Apr 2024 23:35:15 -0700 Subject: [PATCH] update 6xB2 structure --- src/CommandFormats.hh | 5 +++-- src/ReceiveSubcommands.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CommandFormats.hh b/src/CommandFormats.hh index 6b0c5d3d..6bf700e2 100644 --- a/src/CommandFormats.hh +++ b/src/CommandFormats.hh @@ -5563,13 +5563,14 @@ struct G_MoveLobbyChair_6xB0 { // 6xB2: Play sound from player (not valid on pre-V3 or GC Trial Edition) // This command is sent when a snapshot is taken on PSO GC, but it can be used -// to play any sound, centered on the player identified by client_id. +// to play any sound, centered on the local player. If localize is FFFF, then +// the sound is not centered on the local player and is just played globally. struct G_PlaySoundFromPlayer_6xB2 { G_UnusedHeader header; uint8_t floor = 0; uint8_t unused = 0; - le_uint16_t client_id = 0; + le_uint16_t localize = 0; le_uint32_t sound_id = 0; // 0x00051720 = camera shutter sound } __packed_ws__(G_PlaySoundFromPlayer_6xB2, 0x0C); diff --git a/src/ReceiveSubcommands.cc b/src/ReceiveSubcommands.cc index 4cd48524..da02ad4a 100644 --- a/src/ReceiveSubcommands.cc +++ b/src/ReceiveSubcommands.cc @@ -4532,7 +4532,7 @@ const SubcommandDefinition subcommand_definitions[0x100] = { /* 6xAF */ {0x00, 0x00, 0xAF, on_forward_check_lobby_client}, /* 6xB0 */ {0x00, 0x00, 0xB0, on_forward_check_lobby_client}, /* 6xB1 */ {0x00, 0x00, 0xB1, forward_subcommand_m}, - /* 6xB2 */ {0x00, 0x00, 0xB2, on_forward_check_client_t}, + /* 6xB2 */ {0x00, 0x00, 0xB2, forward_subcommand_m}, /* 6xB3 */ {0x00, 0x00, 0xB3, on_xbox_voice_chat_control}, /* 6xB4 */ {0x00, 0x00, 0xB4, on_xbox_voice_chat_control}, /* 6xB5 */ {0x00, 0x00, 0xB5, on_open_shop_bb_or_ep3_battle_subs},