From: Alexander Monakov Date: Sun, 26 Dec 2010 23:27:18 +0000 (+0300) Subject: A tiny cleanup X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=77f2ec7ff36d4622d537a12ca6c20e0034334f5b;p=lugaru.git A tiny cleanup --- 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); } }