From aee6d74bd20ef19ac70bebd59ff2ced83312b5ea Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Thu, 6 Jul 2006 01:15:14 +0000 Subject: [PATCH] no more flying mr bomb SVN-Revision: 3912 --- src/badguy/mrbomb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/badguy/mrbomb.cpp b/src/badguy/mrbomb.cpp index 6c7c6f9d6..9cb02f58d 100644 --- a/src/badguy/mrbomb.cpp +++ b/src/badguy/mrbomb.cpp @@ -38,7 +38,6 @@ MrBomb::MrBomb(const lisp::Lisp& reader) } //Replace sprite sprite = sprite_manager->create( sprite_name ); - bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height()); } /* MrBomb created by a despencer always gets default sprite atm.*/ @@ -63,6 +62,7 @@ MrBomb::activate() { physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED); sprite->set_action(dir == LEFT ? "left" : "right"); + bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height()); } void -- 2.11.0