From 43ee4a9c5a7f2110d304ac935bb1770691cce597 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 29 Dec 2023 16:25:53 -0800 Subject: [PATCH] fix name_color_checksum computation bug --- src/PlayerSubordinates.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PlayerSubordinates.cc b/src/PlayerSubordinates.cc index 6e05b94e..788d0689 100644 --- a/src/PlayerSubordinates.cc +++ b/src/PlayerSubordinates.cc @@ -143,8 +143,13 @@ void PlayerVisualConfig::enforce_lobby_join_limits_for_version(Version v) { this->head = maxes->head ? (this->head % maxes->head) : 0; this->hair = maxes->hair ? (this->hair % maxes->hair) : 0; + if (this->name_color == 0) { + this->name_color = 0xFFFFFFFF; + } if (is_v1_or_v2(v)) { this->compute_name_color_checksum(); + } else { + this->name_color_checksum = 0; } this->class_flags = class_flags_for_class(this->char_class);