From: Florian Forster 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=1aad392e0b2bf78f8cf0062f9197c154ddfa8184;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 SVN-Revision: 6579 --- 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);