From: Ricardo Cruz Date: Fri, 19 Mar 2004 01:23:41 +0000 (+0000) Subject: corrected 2 badguys behaviour thingies X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a11a8f666bf5703eb3667fc576e2c526c983ddca;p=supertux.git corrected 2 badguys behaviour thingies SVN-Revision: 261 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 09703ecf1..f09a32e28 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -179,7 +179,8 @@ void badguy_action(bad_guy_type* pbad) pbad->base.x += 24; pbad->mode=KICK; - pbad->base.ym-=8; + pbad->base.xm = 8; + pbad->base.ym = 8; play_sound(sounds[SND_KICK],SOUND_CENTER_SPEAKER); } } @@ -634,7 +635,7 @@ void badguy_collision(bad_guy_type* pbad, void *p_c_object, int c_object) /* Kick! */ play_sound(sounds[SND_KICK], SOUND_CENTER_SPEAKER); - if (pplayer_c->base.x <= pbad->base.x) + if (pplayer_c->base.x < pbad->base.x + (pbad->base.width/2)) pbad->dir = RIGHT; else pbad->dir = LEFT;