/* Move left/right: */
- if (pbad->mode != HELD)
+ if (pbad->mode == NORMAL || pbad->mode == KICK)
{
if (pbad->dying == NO ||
pbad->dying == FALLING)
break;
case CO_BADGUY:
pbad_c = (bad_guy_type*) p_c_object;
- if (pbad->mode != FLAT)
+ if (pbad->mode == NORMAL)
pbad->dir = !pbad->dir;
else
{
add_score(pbad->base.x - scroll_x,
pbad->base.y, 100);
}
- pbad->dir = !pbad->dir;
break;
case CO_PLAYER:
pplayer_c = (player_type*) p_c_object;
else if (pbad->kind == BAD_LAPTOP)
{
- if (pbad->mode != KICK)
+ if (pbad->mode == NORMAL || pbad->mode == KICK)
{
/* Flatten! */
physic_set_state(&pplayer_c->vphysic,PH_VT);
physic_set_start_vy(&pplayer_c->vphysic,2.);
}
- else
+ else if (pbad->mode == FLAT)
{
/* Kick! */