From 78a88d90a02fdde4bab965c04d5e41b221d624e1 Mon Sep 17 00:00:00 2001 From: Lukasz Wlasinksi Date: Wed, 14 Jul 2004 23:57:21 +0000 Subject: [PATCH] fixed self damage stats --- dlls/dod2/dodx/usermsg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/dod2/dodx/usermsg.cpp b/dlls/dod2/dodx/usermsg.cpp index 4de6fb52..40ac8e8b 100755 --- a/dlls/dod2/dodx/usermsg.cpp +++ b/dlls/dod2/dodx/usermsg.cpp @@ -160,7 +160,8 @@ void Client_Health_End(void* mValue){ if ( !pAttacker ){ pAttacker = mPlayer; } - else{ + + if ( pAttacker->index != mPlayer->index ){ pAttacker->saveHit( mPlayer , weapon , damage, aim ); if ( mPlayer->pEdict->v.team == pAttacker->pEdict->v.team ) TA = 1;