summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'clear_cmd.c')
-rw-r--r--clear_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index 319412592..4356cb729 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -751,7 +751,7 @@ void GenerateClearTile()
_map5[tile] = (byte)((_map5[tile] & ~(3<<2)) | (2<<2));
do {
if (--j == 0) goto get_out;
- tile_new = tile + _tileoffs_by_dir[Random() & 3];
+ tile_new = tile + TileOffsByDir(Random() & 3);
} while (!IS_TILETYPE(tile_new, MP_CLEAR));
tile = tile_new;
}