Mark dirty the catchment of a station on change as necessary for zoning.

If the zoning mode is station catchment, or unserved industry/building,
mark dirty the station catchment rectangle before removing, or after
adding, (a) station tile(s).
In the case of unserved industry mode, increase the refreshed catchment
radius by 10 tiles, to wholly include industries partially inside
the catchment area.
This commit is contained in:
Jonathan G Rennison
2015-11-01 16:07:55 +00:00
parent 74bccb5d50
commit c120b810d1
5 changed files with 57 additions and 6 deletions

View File

@@ -489,7 +489,11 @@ public:
static void RecomputeIndustriesNearForAll();
uint GetCatchmentRadius() const;
Rect GetCatchmentRect() const;
Rect GetCatchmentRectUsingRadius(uint radius) const;
inline Rect GetCatchmentRect() const
{
return GetCatchmentRectUsingRadius(this->GetCatchmentRadius());
}
/* virtual */ inline bool TileBelongsToRailStation(TileIndex tile) const
{