Skip to content

Commit

Permalink
Update rank.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mlibre2 authored Jul 8, 2023
1 parent 712a26e commit ac4f208
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rank.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,11 @@ static cell AMX_NATIVE_CALL custom_wpn_dmg(AMX *amx, cell *params)
}
CPlayer* pAtt = GET_PLAYER_POINTER_I(att);
CPlayer* pVic = GET_PLAYER_POINTER_I(vic);

if ( !pAtt ) pAtt = pVic;
pVic->pEdict->v.dmg_inflictor = NULL;
pAtt->saveHit( pVic , weapon , dmg, aim );
if ( !pAtt ) pAtt = pVic;

int TA = 0;
if ( (pVic->teamId == pAtt->teamId) && ( pVic != pAtt) )
TA = 1;
Expand Down

0 comments on commit ac4f208

Please sign in to comment.