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,6 +296,8 @@ void CoreConfig::OnMapConfigTimer()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_legacyMapConfigNextTime <= gpGlobals->time)
|
||||||
|
{
|
||||||
if (m_PendingForwardPush)
|
if (m_PendingForwardPush)
|
||||||
{
|
{
|
||||||
m_PendingForwardPush = false;
|
m_PendingForwardPush = false;
|
||||||
|
@ -303,10 +305,11 @@ void CoreConfig::OnMapConfigTimer()
|
||||||
|
|
||||||
executeForwards(m_ConfigsExecutedForward);
|
executeForwards(m_ConfigsExecutedForward);
|
||||||
}
|
}
|
||||||
else if (!m_LegacyMapConfigsExecuted && m_legacyMapConfigNextTime <= gpGlobals->time)
|
else if (!m_LegacyMapConfigsExecuted)
|
||||||
{
|
{
|
||||||
ExecuteMapConfig();
|
ExecuteMapConfig();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreConfig::CheckLegacyBufferedCommand(char *command)
|
void CoreConfig::CheckLegacyBufferedCommand(char *command)
|
||||||
|
@ -316,9 +319,17 @@ void CoreConfig::CheckLegacyBufferedCommand(char *command)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_LegacyMainConfigExecuted && (strstr(command, MainConfigFile) || strstr(command, MapConfigDir)))
|
|
||||||
|
if (!m_LegacyMainConfigExecuted && strstr(command, MainConfigFile))
|
||||||
{
|
{
|
||||||
m_LegacyMainConfigExecuted = true;
|
m_LegacyMainConfigExecuted = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!m_LegacyMapConfigsExecuted && strstr(command, MapConfigDir))
|
||||||
|
{
|
||||||
|
m_LegacyMapConfigsExecuted = true;
|
||||||
|
|
||||||
|
// Consider all configs be executed to m_legacyMapConfigNextTime time.
|
||||||
m_PendingForwardPush = true;
|
m_PendingForwardPush = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user