X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Fsynchro_1.c;h=ef4d0f2c82e73d1e88e7fa7ba87dc22557b90163;hb=931481fe085a820997fc0184263ced9d6475aea5;hp=3a469fdfcdb1f4a44d2cc811429aafd0703c779f;hpb=7c0b78ef65acbe880d7f905a5e38fb7bdac8f007;p=rocksndiamonds.git diff --git a/src/game_em/synchro_1.c b/src/game_em/synchro_1.c index 3a469fdf..ef4d0f2c 100644 --- a/src/game_em/synchro_1.c +++ b/src/game_em/synchro_1.c @@ -469,7 +469,6 @@ static void check_player(struct PLAYER *ply) int oldy = ply->y; int x = oldx; int y = oldy; - int anim = 0; int dx = 0, dy = 0; game_em.last_player_direction[ply->num] = MV_NONE; @@ -485,26 +484,22 @@ static void check_player(struct PLAYER *ply) { x--; dx = -1; - anim = 3; } else if (ply->joy_e) /* east */ { x++; dx = 1; - anim = 1; } if (ply->joy_n) /* north */ { y--; dy = -1; - anim = 0; } else if (ply->joy_s) /* south */ { y++; dy = 1; - anim = 2; } #else @@ -515,25 +510,21 @@ static void check_player(struct PLAYER *ply) { y--; dy = -1; - anim = 0; } else if (ply->joy_e) /* east */ { x++; dx = 1; - anim = 1; } else if (ply->joy_s) /* south */ { y++; dy = 1; - anim = 2; } else if (ply->joy_w) /* west */ { x--; dx = -1; - anim = 3; } } else @@ -542,25 +533,21 @@ static void check_player(struct PLAYER *ply) { x--; dx = -1; - anim = 3; } else if (ply->joy_s) /* south */ { y++; dy = 1; - anim = 2; } else if (ply->joy_e) /* east */ { x++; dx = 1; - anim = 1; } else if (ply->joy_n) /* north */ { y--; dy = -1; - anim = 0; } } #endif