fixed self damage stats

This commit is contained in:
Lukasz Wlasinksi 2004-07-14 23:57:21 +00:00
parent aaa1e781c2
commit 78a88d90a0

View File

@ -160,7 +160,8 @@ void Client_Health_End(void* mValue){
if ( !pAttacker ){ if ( !pAttacker ){
pAttacker = mPlayer; pAttacker = mPlayer;
} }
else{
if ( pAttacker->index != mPlayer->index ){
pAttacker->saveHit( mPlayer , weapon , damage, aim ); pAttacker->saveHit( mPlayer , weapon , damage, aim );
if ( mPlayer->pEdict->v.team == pAttacker->pEdict->v.team ) if ( mPlayer->pEdict->v.team == pAttacker->pEdict->v.team )
TA = 1; TA = 1;