Fix ConfigsExecutedForward (my mistake) (#1024)
* Fix one big issue what broken all plugins!
If found any config from servercmd, m_ConfigsExecutedForward not called !!!!!!!
If m_ConfigsExecutedForward not called, this is broke all plugins where used m_ConfigsExecutedForward (example restmenu)
Revert "Fix one big issue what broken all plugins!"
This reverts commit 6ce36f22e1c278f0831ebbddbc1dbbceb91dacb9.
* Fix m_ConfigsExecutedForward after my missprint from previous pr
Fix my missprint from previous pull request 275be8b0a8
This commit is contained in:
parent
275be8b0a8
commit
6e8554d1d2
|
@ -296,16 +296,19 @@ void CoreConfig::OnMapConfigTimer()
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_PendingForwardPush)
|
||||
if (m_legacyMapConfigNextTime <= gpGlobals->time)
|
||||
{
|
||||
m_PendingForwardPush = false;
|
||||
m_ConfigsExecuted = true;
|
||||
if (m_PendingForwardPush)
|
||||
{
|
||||
m_PendingForwardPush = false;
|
||||
m_ConfigsExecuted = true;
|
||||
|
||||
executeForwards(m_ConfigsExecutedForward);
|
||||
}
|
||||
else if (!m_LegacyMapConfigsExecuted && m_legacyMapConfigNextTime <= gpGlobals->time)
|
||||
{
|
||||
ExecuteMapConfig();
|
||||
executeForwards(m_ConfigsExecutedForward);
|
||||
}
|
||||
else if (!m_LegacyMapConfigsExecuted)
|
||||
{
|
||||
ExecuteMapConfig();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -316,9 +319,17 @@ void CoreConfig::CheckLegacyBufferedCommand(char *command)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!m_LegacyMainConfigExecuted && (strstr(command, MainConfigFile) || strstr(command, MapConfigDir)))
|
||||
|
||||
if (!m_LegacyMainConfigExecuted && strstr(command, MainConfigFile))
|
||||
{
|
||||
m_LegacyMainConfigExecuted = true;
|
||||
}
|
||||
|
||||
if (!m_LegacyMapConfigsExecuted && strstr(command, MapConfigDir))
|
||||
{
|
||||
m_LegacyMapConfigsExecuted = true;
|
||||
|
||||
// Consider all configs be executed to m_legacyMapConfigNextTime time.
|
||||
m_PendingForwardPush = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user