From 2b4ed9cc277f6a3124c6296f78c43c1b273dc68b Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Wed, 22 Dec 2004 16:29:40 +0000 Subject: [PATCH] Test: Hopefully fixed "bot bug" --- amxmodx/meta_api.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index ebcbde85..5b045bdb 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -554,6 +554,11 @@ void C_ClientDisconnect( edict_t *pEntity ) { RETURN_META(MRES_IGNORED); } +void C_ClientDisconnect_Post(edict_t *pEntity) +{ + pEntity->v.flags &= ~FL_FAKECLIENT; +} + void C_ClientPutInServer_Post( edict_t *pEntity ) { CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity); if (!pPlayer->IsBot()) { @@ -1230,6 +1235,7 @@ C_DLLEXPORT int GetEntityAPI2_Post( DLL_FUNCTIONS *pFunctionTable, int *interfac gFunctionTable_Post.pfnClientUserInfoChanged = C_ClientUserInfoChanged_Post; gFunctionTable_Post.pfnServerActivate = C_ServerActivate_Post; gFunctionTable_Post.pfnClientConnect = C_ClientConnect_Post; + gFunctionTable_Post.pfnClientDisconnect = C_ClientDisconnect_Post; gFunctionTable_Post.pfnStartFrame = C_StartFrame_Post; gFunctionTable_Post.pfnServerDeactivate = C_ServerDeactivate_Post;