diff options
author | rubidium <rubidium@openttd.org> | 2009-07-26 21:50:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-26 21:50:30 +0000 |
commit | 2ec12a3f587f4271a2d8ba5e22af233e1094e321 (patch) | |
tree | 114688ff4bf43f5c94891a3fa67b5b172d187323 /src/unmovable_cmd.cpp | |
parent | 47a37b6093c3bb93dba81e4d3440c4098699a849 (diff) | |
download | openttd-2ec12a3f587f4271a2d8ba5e22af233e1094e321.tar.xz |
(svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 15170b90e..832318dd5 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -370,9 +370,9 @@ static bool IsRadioTowerNearby(TileIndex tile) uint w = min(TileX(tile), 4U) + 1 + min(MapMaxX() - TileX(tile), 4U); uint h = min(TileY(tile), 4U) + 1 + min(MapMaxY() - TileY(tile), 4U); - BEGIN_TILE_LOOP(tile, w, h, tile_s) + TILE_LOOP(tile, w, h, tile_s) { if (IsTransmitterTile(tile)) return true; - END_TILE_LOOP(tile, w, h, tile_s) + } return false; } |