void
Dispenser::active_action(float )
{
- if (dispense_timer.check()) {
- launch_badguy();
- }
+ if (dispense_timer.check()) {
+ launch_badguy();
+ }
}
HitResponse
void
Dispenser::launch_badguy()
{
- //FIXME: Does is_offscreen() work right here?
- if (!is_offscreen()) {
+ //FIXME: Does is_offscreen() work right here?
+ if (!is_offscreen()) {
if (badguy == "snowball")
Sector::current()->add_object(new SnowBall(get_pos().x, get_pos().y, dir));
else if (badguy == "bouncingsnowball")
else if (badguy == "mriceblock")
Sector::current()->add_object(new MrIceBlock(get_pos().x, get_pos().y, dir));
else if (badguy == "random")
- {}
- }
+ {}
+ }
}
+