diff options
author | tron <tron@openttd.org> | 2005-01-03 18:59:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-03 18:59:58 +0000 |
commit | c0702318d27d327e449b7f954dd15c0e46403f5c (patch) | |
tree | 294d2e8a0c3b227b0a8b5baf6e113d2043432d81 /clear_cmd.c | |
parent | d382463f8afad00bc944c3057c2e9a0ac90e721c (diff) | |
download | openttd-c0702318d27d327e449b7f954dd15c0e46403f5c.tar.xz |
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clear_cmd.c b/clear_cmd.c index c97d6d9a3..ac77c1632 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -86,7 +86,7 @@ static int TerraformProc(TerraformerState *ts, uint tile, int mode) int r; int32 ret; - assert(tile < TILES_X * TILES_Y); + assert(tile < MapSize()); if ((r=TerraformAllowTileProcess(ts, tile)) <= 0) return r; @@ -135,7 +135,7 @@ static bool TerraformTileHeight(TerraformerState *ts, uint tile, int height) TerraformerHeightMod *mod; int count; - assert(tile < TILES_X * TILES_Y); + assert(tile < MapSize()); if (height < 0) { _error_message = STR_1003_ALREADY_AT_SEA_LEVEL; |