From: Ricardo Cruz Date: Fri, 19 Mar 2004 13:59:29 +0000 (+0000) Subject: Corrected a laptop behaviour, regarding kicking X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b7c38ba2b2044c286dacb341c420b364343eb8d6;p=supertux.git Corrected a laptop behaviour, regarding kicking SVN-Revision: 262 --- diff --git a/src/player.cpp b/src/player.cpp index 1f876f3f5..3d5e05774 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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;