summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-03 18:59:58 +0000
committertron <tron@openttd.org>2005-01-03 18:59:58 +0000
commitbcff0ab9320a2d4826d42135a674fac4e06a6f9d (patch)
tree294d2e8a0c3b227b0a8b5baf6e113d2043432d81 /clear_cmd.c
parentb12b10c34336316b3b60547947faf9f1ac02efde (diff)
downloadopenttd-bcff0ab9320a2d4826d42135a674fac4e06a6f9d.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.c4
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;