summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 7bcca8940..a38a34981 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -374,7 +374,7 @@ restart:
j = 20;
do {
if (--j == 0) goto restart;
- tile = TILE_MASK(tile + TileOffsByDir(dir));
+ tile = TILE_MASK(tile + TileOffsByDiagDir(dir));
} while (!(IsTileType(tile, MP_CLEAR) && GetTileSlope(tile, &h) == SLOPE_FLAT && h <= TILE_HEIGHT * 2));
assert(tile == TILE_MASK(tile));