- fixed bomb-dup bug (vector increases on add, and this changes I guess, so remove...
authorIngo Ruhnke <grumbel@gmx.de>
Thu, 22 Apr 2004 16:49:28 +0000 (16:49 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Thu, 22 Apr 2004 16:49:28 +0000 (16:49 +0000)
SVN-Revision: 642

src/badguy.cpp

index 67d5540..1c06b25 100644 (file)
@@ -856,6 +856,7 @@ void
 BadGuy::squish(Player* player)
 {
   if(kind == BAD_MRBOMB) {
+    remove_me();
     // mrbomb transforms into a bomb now
     World::current()->add_bad_guy(base.x, base.y, BAD_BOMB);
     
@@ -864,7 +865,6 @@ BadGuy::squish(Player* player)
     play_sound(sounds[SND_SQUISH], SOUND_CENTER_SPEAKER);
     player_status.score_multiplier++;
       
-    remove_me();
     return;
 
   } else if(kind == BAD_BSOD) {