diff options
author | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
commit | cc87f682b9cd9c25ee58cec1b63792e4ef786aa9 (patch) | |
tree | e106242c0ac31fc61254791e0f6fcfe95db2baad /industry_cmd.c | |
parent | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (diff) | |
download | openttd-cc87f682b9cd9c25ee58cec1b63792e4ef786aa9.tar.xz |
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 55ca863ca..cf9e38b64 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -941,7 +941,7 @@ static void PlantFarmField(TileIndex tile) int type; if (_opt.landscape == LT_HILLY) { - if (GetTileZ(tile) + 16 >= _opt.snow_line) + if (GetTileZ(tile) + TILE_HEIGHT * 2 >= _opt.snow_line) return; } @@ -1162,7 +1162,7 @@ static bool CheckNewIndustry_Oil(TileIndex tile, int type) if (_game_mode == GM_EDITOR && _ignore_restrictions) return true; if (_game_mode == GM_EDITOR && type != IT_OIL_RIG) return true; if ((type != IT_OIL_RIG || TileHeight(tile) == 0) && - DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < TILE_SIZE) return true; + DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < 16) return true; _error_message = STR_483B_CAN_ONLY_BE_POSITIONED; return false; @@ -1171,7 +1171,7 @@ static bool CheckNewIndustry_Oil(TileIndex tile, int type) static bool CheckNewIndustry_Farm(TileIndex tile, int type) { if (_opt.landscape == LT_HILLY) { - if (GetTileZ(tile) + 16 >= _opt.snow_line) { + if (GetTileZ(tile) + TILE_HEIGHT * 2 >= _opt.snow_line) { _error_message = STR_0239_SITE_UNSUITABLE; return false; } |