Skip to content

Commit

Permalink
Bombfish: Create the explosion at the bottom of the bombfish.
Browse files Browse the repository at this point in the history
Otherwise Tux won't be hurt when the bombfish falls onto him.
Resolves: #593

SVN-Revision: 6579
  • Loading branch information
Florian Forster committed Mar 8, 2010
1 parent a68b712 commit 1aad392
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/badguy/bombfish.cpp
Expand Up @@ -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"

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1aad392

Please sign in to comment.