also blank name_color_checksum during $bbchar

This commit is contained in:
Martin Michelsen
2023-11-14 12:29:35 -08:00
parent 5c47385bee
commit 82d0539c31
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ struct PlayerVisualConfig {
/* 1C */ uint8_t extra_model = 0;
/* 1D */ parray<uint8_t, 0x0F> 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;
+3
View File
@@ -2889,6 +2889,8 @@ static void on_61_98(shared_ptr<Client> 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<Client> 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,