save settings if needed

This commit is contained in:
GenZmeY 2021-06-08 23:31:56 +03:00
parent 4601d2542c
commit f9947ca798
2 changed files with 13 additions and 2 deletions

View File

@ -683,6 +683,14 @@ defaultproperties
MaxPing=200.0
PingBars=5.0
SystemAdminRank="Admin"
SystemAdminColor=(R=250,G=0,B=0)
SystemAdminApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False)
SystemPlayerRank="Player"
SystemPlayerColor=(R=250,G=250,B=250)
SystemPlayerApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False)
Begin Object Class=KFGUI_List Name=PlayerList
XSize=0.625
OnDrawItem=DrawPlayerEntry

View File

@ -110,8 +110,11 @@ private function InitConfig()
break;
}
ConfigVersion = CurrentVersion;
SaveConfig();
if (ConfigVersion != CurrentVersion)
{
ConfigVersion = CurrentVersion;
SaveConfig();
}
}
private function LoadGroupPlayers()