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() --- industry_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'industry_cmd.c') diff --git a/industry_cmd.c b/industry_cmd.c index 236a34744..707f7c66b 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -1215,7 +1215,7 @@ static bool CheckSuitableIndustryPos(uint tile) int x = GET_TILE_X(tile); int y = GET_TILE_Y(tile); - if ( x < 2 || y < 2 || x > TILE_X_MAX - 3 || y > TILE_Y_MAX - 3) { + if ( x < 2 || y < 2 || x > MapMaxX() - 3 || y > MapMaxY() - 3) { _error_message = STR_0239_SITE_UNSUITABLE; return false; } -- cgit v1.2.3-54-g00ecf