Don't give score when flatting a badguy, since this leaves to unfair situations....
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Apr 2004 12:13:00 +0000 (12:13 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Apr 2004 12:13:00 +0000 (12:13 +0000)
I also think that we should give (let's say) half of the score, when a badguy is killed by a bullet. Since it is so easy to do that... What do you say?

SVN-Revision: 800

src/badguy.cpp

index aa3d1a6..a0ee107 100644 (file)
@@ -905,9 +905,12 @@ BadGuy::squish(Player* player)
       }
 
     make_player_jump(player);
-             
-    World::current()->add_score(base.x - scroll_x, base.y, 25 * player_status.score_multiplier);
-    player_status.score_multiplier++;
+
+    if((kind != BAD_MRICEBLOCK && mode != dying))
+      {
+      World::current()->add_score(base.x - scroll_x, base.y, 25 * player_status.score_multiplier);
+      player_status.score_multiplier++;
+      }
 
     // check for maximum number of squiches
     squishcount++;