diff options
author | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 05:32:11 +0000 |
commit | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (patch) | |
tree | 7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /industry_cmd.c | |
parent | a6403bd50a163434cb4a8a9354ac14ef6b0b90c6 (diff) | |
download | openttd-3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9.tar.xz |
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'industry_cmd.c')
-rw-r--r-- | industry_cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/industry_cmd.c b/industry_cmd.c index 407fcb0cb..55ca863ca 100644 --- a/industry_cmd.c +++ b/industry_cmd.c @@ -734,8 +734,8 @@ static void TileLoopIndustry_BubbleGenerator(TileIndex tile) dir = Random() & 3; v = CreateEffectVehicleAbove( - TileX(tile) * 16 + _tileloop_ind_case_161[dir + 0], - TileY(tile) * 16 + _tileloop_ind_case_161[dir + 4], + TileX(tile) * TILE_SIZE + _tileloop_ind_case_161[dir + 0], + TileY(tile) * TILE_SIZE + _tileloop_ind_case_161[dir + 4], _tileloop_ind_case_161[dir + 8], EV_BUBBLE ); @@ -819,7 +819,7 @@ static void TileLoop_Industry(TileIndex tile) break; case 49: - CreateEffectVehicleAbove(TileX(tile) * 16 + 6, TileY(tile) * 16 + 6, 43, EV_SMOKE); + CreateEffectVehicleAbove(TileX(tile) * TILE_SIZE + 6, TileY(tile) * TILE_SIZE + 6, 43, EV_SMOKE); break; @@ -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)) < 16) return true; + DistanceFromEdge(TILE_ADDXY(tile, 1, 1)) < TILE_SIZE) return true; _error_message = STR_483B_CAN_ONLY_BE_POSITIONED; return false; |