Fix client_death/damage forwards passing alive victims on ClientKill (bug 5812, r=Nextra)
Former-commit-id: 39fadf43027ccfaff20a7c671aec4f22fdf432ca
This commit is contained in:
@ -112,9 +112,10 @@ const char* get_localinfo( const char* name , const char* def = 0 )
|
||||
return b;
|
||||
}
|
||||
|
||||
void ClientKill(edict_t *pEntity){
|
||||
void ClientKill_Post(edict_t *pEntity)
|
||||
{
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity);
|
||||
if ( !pPlayer->IsAlive())
|
||||
if ( pPlayer->IsAlive())
|
||||
RETURN_META(MRES_IGNORED);
|
||||
|
||||
MF_ExecuteForward( iFDamage,static_cast<cell>(pPlayer->index), static_cast<cell>(pPlayer->index) ,
|
||||
|
Reference in New Issue
Block a user