From: florianf Date: Mon, 8 Mar 2010 13:33:44 +0000 (+0000) Subject: Bombfish: Create the explosion at the bottom of the bombfish. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=712e849641df50dc4dc94d6760967a9bf41f2b7d;p=supertux.git Bombfish: Create the explosion at the bottom of the bombfish. Otherwise Tux won't be hurt when the bombfish falls onto him. Resolves: #593 git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6579 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- diff --git a/src/badguy/bombfish.cpp b/src/badguy/bombfish.cpp index 58a15b2c6..6c5b52fa8 100644 --- a/src/badguy/bombfish.cpp +++ b/src/badguy/bombfish.cpp @@ -18,6 +18,7 @@ #include "supertux/constants.hpp" #include "supertux/sector.hpp" +#include "object/anchor_point.hpp" #include "object/player.hpp" #include "object/explosion.hpp" @@ -119,7 +120,7 @@ BombFish::explode (void) if (!is_valid ()) return; - Explosion *explosion = new Explosion (get_bbox ().get_middle ()); + Explosion *explosion = new Explosion (get_anchor_pos (bbox, ANCHOR_BOTTOM)); explosion->hurts (true); explosion->pushes (false);