From 32bfe0dddde81d016cb8de15e6a41bca3506d7be Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 3 Jan 2005 12:56:22 +0000 Subject: (svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY] While here replace one erroneous TILE_MAX_X with MapMaxY() --- clear_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clear_cmd.c') diff --git a/clear_cmd.c b/clear_cmd.c index a6d062839..c97d6d9a3 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -30,7 +30,7 @@ static int TerraformAllowTileProcess(TerraformerState *ts, TileIndex tile) TileIndex *t; int count; - if ((GET_TILE_X(tile) == TILE_X_MAX) || (GET_TILE_Y(tile) == TILE_Y_MAX)) + if (GET_TILE_X(tile) == MapMaxX() || GET_TILE_Y(tile) == MapMaxY()) return -1; t = ts->tile_table; -- cgit v1.2.3-54-g00ecf