From 77f2ec7ff36d4622d537a12ca6c20e0034334f5b Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 27 Dec 2010 02:27:18 +0300 Subject: [PATCH] A tiny cleanup --- Source/Person.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Person.cpp b/Source/Person.cpp index b738121..a6eba85 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -1819,10 +1819,8 @@ void Person::DoAnimations(){ victim->spurt=1; victim->DoBloodBig(1/victim->armorhead,210); } - award_bonus(id, TackleBonus); - if(id==0){ - if(victim->aitype==gethelptype)bonusvalue=50; - } + award_bonus(id, TackleBonus, + victim->aitype == gethelptype ? 50 : 0); } } -- 2.39.2