From 82d0539c31466028e7b9e655207251b7b25dbd6b Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 14 Nov 2023 12:29:35 -0800 Subject: [PATCH] also blank name_color_checksum during $bbchar --- src/PlayerSubordinates.hh | 2 +- src/ReceiveCommands.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PlayerSubordinates.hh b/src/PlayerSubordinates.hh index bd326295..d0e690a8 100644 --- a/src/PlayerSubordinates.hh +++ b/src/PlayerSubordinates.hh @@ -101,7 +101,7 @@ struct PlayerVisualConfig { /* 1C */ uint8_t extra_model = 0; /* 1D */ parray unused; // See compute_name_color_checksum for details on how this is computed. This - // field is ignored on V3 and BB. + // field is ignored on V3. /* 2C */ le_uint32_t name_color_checksum = 0; /* 30 */ uint8_t section_id = 0; /* 31 */ uint8_t char_class = 0; diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 91bf30e1..85a3cb9d 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -2889,6 +2889,8 @@ static void on_61_98(shared_ptr c, uint16_t command, uint32_t flag, stri const auto& p = c->game_data.character(); uint8_t prev_version = p->disp.visual.version; p->disp.visual.version = 4; + uint32_t prev_name_color_checksum = p->disp.visual.name_color_checksum; + p->disp.visual.name_color_checksum = 0x00000000; bool failure = false; try { @@ -2899,6 +2901,7 @@ static void on_61_98(shared_ptr c, uint16_t command, uint32_t flag, stri } p->disp.visual.version = prev_version; + p->disp.visual.name_color_checksum = prev_name_color_checksum; if (!failure) { send_text_message_printf(c,