fixed bug at25028 (teame06)

This commit is contained in:
David Anderson
2006-02-05 08:06:50 +00:00
parent 35e8a67a48
commit f8d0e4b90d
2 changed files with 24 additions and 9 deletions

View File

@ -31,6 +31,12 @@ void ServerActivate(edict_t *pEdictList, int edictCount, int clientMax)
Engine[FM_##call].clear(); \
EnginePost[FM_##call].clear()
#define RESETN(call) \
g_pNewFunctionsTable->pfn##call = NULL; \
g_pNewFunctionsTable_Post->pfn##call = NULL; \
Engine[FM_##call].clear(); \
EnginePost[FM_##call].clear();
void OnPluginsLoaded()
{
// Reset all call lists here.
@ -122,7 +128,7 @@ void OnPluginsLoaded()
RESETE(CVarGetString);
RESETE(CVarSetFloat);
RESETE(CVarSetString);
RESETE(AlertMessage);
RESETD(Spawn);
RESETD(Think);
@ -152,5 +158,9 @@ void OnPluginsLoaded()
RESETD(CreateInstancedBaselines);
RESETD(AllowLagCompensation);
RESETN(OnFreeEntPrivateData);
RESETN(GameShutdown);
RESETN(ShouldCollide);
g_pFunctionTable->pfnServerActivate = ServerActivate;
}