diff options
author | tron <tron@openttd.org> | 2005-01-03 12:56:22 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-03 12:56:22 +0000 |
commit | 181e9b6cf931dcba2e8f94f64089a93e6b8fe902 (patch) | |
tree | 04b3f2dd580a9cd8387358c91a0cfcf95a525153 /clear_cmd.c | |
parent | 8f8e6cddd95d80a35ed5f4bbb95874e865230970 (diff) | |
download | openttd-181e9b6cf931dcba2e8f94f64089a93e6b8fe902.tar.xz |
(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()
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |