Merge branch 'master' into jgrpp
# Conflicts: # src/core/sort_func.hpp # src/rail_cmd.cpp # src/timetable_cmd.cpp # src/video/sdl_v.cpp # src/video/win32_v.cpp
This commit is contained in:
@@ -444,10 +444,10 @@ void Station::RecomputeCatchment()
|
||||
this->catchment_tiles.Reset();
|
||||
return;
|
||||
}
|
||||
this->catchment_tiles.Initialize(GetCatchmentRect());
|
||||
|
||||
if (!_settings_game.station.serve_neutral_industries && this->industry != nullptr) {
|
||||
/* Station is associated with an industry, so we only need to deliver to that industry. */
|
||||
this->catchment_tiles.Initialize(this->industry->location);
|
||||
TILE_AREA_LOOP(tile, this->industry->location) {
|
||||
if (IsTileType(tile, MP_INDUSTRY) && GetIndustryIndex(tile) == this->industry->index) {
|
||||
this->catchment_tiles.SetTile(tile);
|
||||
@@ -463,6 +463,8 @@ void Station::RecomputeCatchment()
|
||||
return;
|
||||
}
|
||||
|
||||
this->catchment_tiles.Initialize(GetCatchmentRect());
|
||||
|
||||
/* Loop finding all station tiles */
|
||||
TileArea ta(TileXY(this->rect.left, this->rect.top), TileXY(this->rect.right, this->rect.bottom));
|
||||
TILE_AREA_LOOP(tile, ta) {
|
||||
|
Reference in New Issue
Block a user