Reverted MrBomb kill behaviour
authorRyan Flegel <rflegel@gmail.com>
Thu, 27 Apr 2006 21:17:32 +0000 (21:17 +0000)
committerRyan Flegel <rflegel@gmail.com>
Thu, 27 Apr 2006 21:17:32 +0000 (21:17 +0000)
SVN-Revision: 3455

src/badguy/mrbomb.cpp
src/badguy/mrbomb.hpp

index ef95a45..6772236 100644 (file)
@@ -110,4 +110,13 @@ MrBomb::collision_badguy(BadGuy& , const CollisionHit& hit)
   return CONTINUE;
 }
 
+void
+MrBomb::kill_fall()
+{
+  remove_me();
+  Bomb* bomb = new Bomb(get_pos(), dir);
+  Sector::current()->add_object(bomb);
+  bomb->explode();
+}
+
 IMPLEMENT_FACTORY(MrBomb, "mrbomb")
index 018e1e0..92af127 100644 (file)
@@ -33,6 +33,7 @@ public:
   void write(lisp::Writer& writer);
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
   HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit);
+  void kill_fall();
 
 protected:
   bool collision_squished(Player& player);