Merge branch 'master' into jgrpp-beta
# Conflicts: # .github/workflows/ci-build.yml # src/lang/german.txt # src/lang/romanian.txt # src/lang/slovak.txt # src/lang/turkish.txt # src/network/core/address.cpp # src/network/core/tcp.h # src/network/core/udp.cpp # src/network/network.cpp # src/network/network_client.cpp # src/network/network_server.cpp # src/network/network_server.h # src/network/network_udp.cpp # src/openttd.cpp # src/saveload/newgrf_sl.cpp # src/tree_cmd.cpp # src/video/video_driver.hpp # src/window.cpp # src/window_gui.h
This commit is contained in:
@@ -938,7 +938,7 @@ void ForAllStationsAroundTiles(const TileArea &ta, Func func)
|
||||
uint max_c = _settings_game.station.modified_catchment ? MAX_CATCHMENT : CA_UNMODIFIED;
|
||||
max_c += _settings_game.station.catchment_increase;
|
||||
TileArea ta_ext = TileArea(ta).Expand(max_c);
|
||||
TILE_AREA_LOOP(tile, ta_ext) {
|
||||
for (TileIndex tile : ta_ext) {
|
||||
if (IsTileType(tile, MP_STATION)) seen_stations.insert(GetStationIndex(tile));
|
||||
}
|
||||
|
||||
@@ -950,7 +950,7 @@ void ForAllStationsAroundTiles(const TileArea &ta, Func func)
|
||||
if (!_settings_game.station.serve_neutral_industries && st->industry != nullptr) continue;
|
||||
|
||||
/* Test if the tile is within the station's catchment */
|
||||
TILE_AREA_LOOP(tile, ta) {
|
||||
for (TileIndex tile : ta) {
|
||||
if (st->TileIsInCatchment(tile)) {
|
||||
if (func(st, tile)) break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user