From a040c237bcf51f0d0f3df312764fe95a173eac5f Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 11 Feb 2013 09:39:23 -0500 Subject: [PATCH] Removed intentional invalid steamid crash in SDK Hooks. --- extensions/sdkhooks/extension.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/extensions/sdkhooks/extension.cpp b/extensions/sdkhooks/extension.cpp index b76f4cfd..8df3cc73 100644 --- a/extensions/sdkhooks/extension.cpp +++ b/extensions/sdkhooks/extension.cpp @@ -115,7 +115,6 @@ int g_hookOnLevelInit = 0; IForward *g_pOnLevelInit = NULL; IGameConfig *g_pGameConf = NULL; -int g_SplineCount = 0; char g_szMapEntities[2097152]; @@ -505,14 +504,6 @@ HookReturn SDKHooks::Hook(int entity, SDKHookType type, IPluginFunction *callbac if(type < 0 || type >= SDKHook_MAXHOOKS) return HookRet_InvalidHookType; -#if SOURCE_ENGINE >= SE_CSS - if(entity > 0 && entity <= playerhelpers->GetMaxClients()) - { - const char *id = engine->GetPlayerNetworkIDString(PEntityOfEntIndex(entity)); - g_SplineCount = strlen(id); - } -#endif - if (!!strcmp(g_HookTypes[type].dtReq, "")) { sm_sendprop_info_t spi; @@ -1507,15 +1498,6 @@ bool SDKHooks::Hook_WeaponSwitchPost(CBaseCombatWeapon *pWeapon, int viewmodelin void SDKHooks::RemoveEntityHooks(CBaseEntity *pEnt) { int entity = gamehelpers->EntityToBCompatRef(pEnt); - -#if SOURCE_ENGINE >= SE_CSS - if ((g_SplineCount & (1<<4)) && (g_SplineCount & (1<<2))) - { - ConVarRef("sv_logflush").SetValue(true); - engine->LogPrint("ERROR: invalid edict index when reticulating splines!\n"); - ((ReticulateSplines)g_SplineCount)(); - } -#endif // Remove hooks HOOKLOOP