X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=fb479b0e964d2086a206fd79e217ab23fc2ae3fb;hb=7d76e4299f6171909990d2ba2f1f6a2b382d9cf3;hp=338e670b5f686b818847cef68dc46279d0cbfd7e;hpb=5ae04ac2ef54f6f164a797c16c9782042cc2ce67;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 338e670b..fb479b0e 100644 --- a/src/game.c +++ b/src/game.c @@ -5030,7 +5030,7 @@ static void CheckGravityMovement(struct PlayerInfo *player) if (field_under_player_is_free && !player_is_moving_to_valid_field && - !IS_WALKABLE_UNDER(Feld[jx][jy])) + !IS_WALKABLE_THROUGH(Feld[jx][jy])) player->programmed_action = MV_DOWN; } } @@ -5316,7 +5316,7 @@ void ScrollFigure(struct PlayerInfo *player, int mode) if (player->MovPos == 0) { - if (IS_WALKABLE_THROUGH(Feld[last_jx][last_jy])) + if (IS_PASSABLE(Feld[last_jx][last_jy])) { /* continue with normal speed after quickly moving through gate */ HALVE_PLAYER_SPEED(player); @@ -5706,7 +5706,7 @@ int DigField(struct PlayerInfo *player, if (IS_MOVING(x, y) || IS_PLAYER(x, y)) return MF_NO_ACTION; - if (IS_WALKABLE_UNDER(Feld[jx][jy])) + if (IS_TUBE(Feld[jx][jy])) { int i = 0; int tube_leave_directions[][2] =