Corrected a laptop behaviour, regarding kicking
authorRicardo Cruz <rick2@aeiou.pt>
Fri, 19 Mar 2004 13:59:29 +0000 (13:59 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Fri, 19 Mar 2004 13:59:29 +0000 (13:59 +0000)
SVN-Revision: 262

src/player.cpp

index 1f876f3..3d5e057 100644 (file)
@@ -857,7 +857,7 @@ void player_collision(player_type* pplayer, void* p_c_object, int c_object)
               pbad_c->mode = KICK;
               play_sound(sounds[SND_KICK], SOUND_CENTER_SPEAKER);
 
-              if (pplayer->base.x<= pbad_c->base.x)
+              if (pplayer->base.x < pbad_c->base.x + (pbad_c->base.width/2))
                 {
                   pbad_c->dir = RIGHT;
                   pbad_c->base.x = pbad_c->base.x + 16;