Fix client_death/damage forwards passing alive victims on ClientKill (bug 5812, r=Nextra)

Former-commit-id: 39fadf43027ccfaff20a7c671aec4f22fdf432ca
This commit is contained in:
Vincent Herbet
2013-08-10 19:10:54 +02:00
parent ddacdb0ab2
commit 419c8f6ee6
2 changed files with 5 additions and 4 deletions

View File

@ -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) ,