mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-13 15:28:04 +03:00
small changes
This commit is contained in:
parent
34abaa1d56
commit
f828e1c8a0
@ -73,6 +73,11 @@ void CTaskMngr::CTask::set(CPluginMngr::CPlugin *pPlugin, int iFunc, int iFlags,
|
|||||||
|
|
||||||
void CTaskMngr::CTask::clear()
|
void CTaskMngr::CTask::clear()
|
||||||
{
|
{
|
||||||
|
if (m_iFunc >= 0)
|
||||||
|
{
|
||||||
|
unregisterSPForward(m_iFunc);
|
||||||
|
m_iFunc = -1;
|
||||||
|
}
|
||||||
m_bFree = true;
|
m_bFree = true;
|
||||||
if (m_pParams)
|
if (m_pParams)
|
||||||
{
|
{
|
||||||
@ -133,7 +138,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
unregisterSPForward(m_iFunc);
|
unregisterSPForward(m_iFunc);
|
||||||
m_iFunc = 0;
|
m_iFunc = -1;
|
||||||
m_bFree = true;
|
m_bFree = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -444,13 +444,13 @@ void C_ServerDeactivate_Post() {
|
|||||||
|
|
||||||
detachReloadModules();
|
detachReloadModules();
|
||||||
g_auth.clear();
|
g_auth.clear();
|
||||||
g_forwards.clear();
|
|
||||||
g_commands.clear();
|
g_commands.clear();
|
||||||
g_forcemodels.clear();
|
g_forcemodels.clear();
|
||||||
g_forcesounds.clear();
|
g_forcesounds.clear();
|
||||||
g_forcegeneric.clear();
|
g_forcegeneric.clear();
|
||||||
g_grenades.clear();
|
g_grenades.clear();
|
||||||
g_tasksMngr.clear();
|
g_tasksMngr.clear();
|
||||||
|
g_forwards.clear();
|
||||||
g_logevents.clearLogEvents();
|
g_logevents.clearLogEvents();
|
||||||
g_events.clearEvents();
|
g_events.clearEvents();
|
||||||
g_menucmds.clear();
|
g_menucmds.clear();
|
||||||
@ -460,7 +460,6 @@ void C_ServerDeactivate_Post() {
|
|||||||
g_langMngr.Save(build_pathname("%s/languages.dat", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
|
g_langMngr.Save(build_pathname("%s/languages.dat", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
|
||||||
g_langMngr.SaveCache(build_pathname("%s/dictionary.cache", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
|
g_langMngr.SaveCache(build_pathname("%s/dictionary.cache", get_localinfo("amxx_datadir", "addons/amxmodx/data")));
|
||||||
g_langMngr.Clear();
|
g_langMngr.Clear();
|
||||||
|
|
||||||
//clear module name cache
|
//clear module name cache
|
||||||
while (!CurModuleList.empty())
|
while (!CurModuleList.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user