Skip to content

Commit

Permalink
Only load simple war names in simple mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Aug 26, 2024
1 parent d49c44b commit 5434aca
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/game/client/components/chillerbot/warlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 5434aca

Please sign in to comment.