From 9d0ba3a97bc5e8cf622ddcb6f87ee082da329fb9 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 18 Oct 2023 17:22:26 -0700 Subject: [PATCH] fix class replacement for v3/v2 compatibility --- src/PlayerSubordinates.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PlayerSubordinates.cc b/src/PlayerSubordinates.cc index 103a39b3..922cea02 100644 --- a/src/PlayerSubordinates.cc +++ b/src/PlayerSubordinates.cc @@ -22,12 +22,12 @@ FileContentsCache player_files_cache(300 * 1000 * 1000); void PlayerDispDataDCPCV3::enforce_lobby_join_limits(GameVersion target_version) { if ((target_version == GameVersion::PC) || (target_version == GameVersion::DC)) { // V1/V2 have fewer classes, so we'll substitute some here - if (this->visual.char_class == 11) { - this->visual.char_class = 0; // FOmar -> HUmar - } else if (this->visual.char_class == 10) { - this->visual.char_class = 1; // RAmarl -> HUnewearl - } else if (this->visual.char_class == 9) { + if (this->visual.char_class == 9) { this->visual.char_class = 5; // HUcaseal -> RAcaseal + } else if (this->visual.char_class == 10) { + this->visual.char_class = 0; // FOmar -> HUmar + } else if (this->visual.char_class == 11) { + this->visual.char_class = 1; // RAmarl -> HUnewearl } // V1/V2 has fewer costumes, so substitute them here too