equal
deleted
inserted
replaced
1234 } else { |
1234 } else { |
1235 if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) { |
1235 if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) { |
1236 /* As soon as the tile is not water, bail out. |
1236 /* As soon as the tile is not water, bail out. |
1237 * But that does not mean the search is over. You have |
1237 * But that does not mean the search is over. You have |
1238 * to make sure every tile of the industry will be only water*/ |
1238 * to make sure every tile of the industry will be only water*/ |
1239 if (!IsClearWaterTile(cur_tile)) return false; |
1239 if (!IsWaterTile(cur_tile)) return false; |
1240 } else { |
1240 } else { |
1241 Slope tileh; |
1241 Slope tileh; |
1242 |
1242 |
1243 if (IsClearWaterTile(cur_tile)) return false; |
1243 if (IsWaterTile(cur_tile)) return false; |
1244 |
1244 |
1245 tileh = GetTileSlope(cur_tile, NULL); |
1245 tileh = GetTileSlope(cur_tile, NULL); |
1246 |
1246 |
1247 refused_slope |= IsSlopeRefused(tileh, its->slopes_refused); |
1247 refused_slope |= IsSlopeRefused(tileh, its->slopes_refused); |
1248 } |
1248 } |