Test: Hopefully fixed "bot bug"
This commit is contained in:
parent
e986848faf
commit
2b4ed9cc27
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user