From 5434aca2b433ad0133ca60173c0f87b2c45301a9 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Mon, 26 Aug 2024 14:46:39 +0800 Subject: [PATCH] Only load simple war names in simple mode --- .../client/components/chillerbot/warlist.cpp | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/game/client/components/chillerbot/warlist.cpp b/src/game/client/components/chillerbot/warlist.cpp index b63b669c90d..3b9ee07216f 100644 --- a/src/game/client/components/chillerbot/warlist.cpp +++ b/src/game/client/components/chillerbot/warlist.cpp @@ -32,13 +32,22 @@ void CWarList::ReloadList() m_vNeutrallist.clear(); m_vWarClanlist.clear(); m_vTeamClanlist.clear(); - LoadWarList(); - LoadTeamList(); - LoadTraitorList(); - LoadNeutralList(); - LoadWarClanList(); - LoadTeamClanList(); - LoadWarClanPrefixList(); + + if(g_Config.m_ClWarListAdvanced) + { + LoadWarList(); + LoadTeamList(); + LoadTraitorList(); + LoadNeutralList(); + LoadWarClanList(); + LoadTeamClanList(); + LoadWarClanPrefixList(); + } + else // simple warlist + { + LoadWarNames("chillerbot/warlist/war"); + } + for(auto &WarPlayer : m_aWarPlayers) WarPlayer.m_aName[0] = '\0'; char aBuf[128];