]> git.jsancho.org Git - lugaru.git/commitdiff
A tiny cleanup
authorAlexander Monakov <amonakov@gmail.com>
Sun, 26 Dec 2010 23:27:18 +0000 (02:27 +0300)
committerAlexander Monakov <amonakov@gmail.com>
Sun, 26 Dec 2010 23:27:18 +0000 (02:27 +0300)
Source/Person.cpp

index b73812151f35c760199201e59160c9de159e5873..a6eba852ea039de0375dc6be403964593e5bbbdb 100644 (file)
@@ -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);
                                }
                        }