leader: fix bug!

This commit is contained in:
neon 2018-09-06 19:18:22 +02:00
parent 4e1242554c
commit 96c33fb0eb

View File

@ -173,16 +173,6 @@ public void ConVarChange(ConVar CVar, const char[] oldVal, const char[] newVal)
//----------------------------------------------------------------------------------------------------
public void OnMapStart()
{
AddFileToDownloadsTable(DefendVTF);
AddFileToDownloadsTable(DefendVMT);
AddFileToDownloadsTable(FollowVTF);
AddFileToDownloadsTable(FollowVMT);
PrecacheGeneric(DefendVTF, true);
PrecacheGeneric(DefendVMT, true);
PrecacheGeneric(FollowVTF, true);
PrecacheGeneric(FollowVMT, true);
Handle gameConfig = LoadGameConfigFile("funcommands.games");
if (gameConfig == null)
{
@ -203,6 +193,22 @@ public void OnMapStart()
UpdateLeaders();
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
public void OnConfigsExecuted()
{
AddFileToDownloadsTable(DefendVTF);
AddFileToDownloadsTable(DefendVMT);
AddFileToDownloadsTable(FollowVTF);
AddFileToDownloadsTable(FollowVMT);
PrecacheGeneric(DefendVTF, true);
PrecacheGeneric(DefendVMT, true);
PrecacheGeneric(FollowVTF, true);
PrecacheGeneric(FollowVMT, true);
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------