projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dispenser can drop PoisonIvy
[supertux.git]
/
src
/
badguy
/
mrbomb.cpp
diff --git
a/src/badguy/mrbomb.cpp
b/src/badguy/mrbomb.cpp
index
2152842
..
88db3d2
100644
(file)
--- a/
src/badguy/mrbomb.cpp
+++ b/
src/badguy/mrbomb.cpp
@@
-77,3
+77,14
@@
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")