Zoning: Add mode to show station catchment only where station window open.

This commit is contained in:
Jonathan G Rennison
2016-01-01 12:17:11 +00:00
parent c120b810d1
commit 7f84a1c501
5 changed files with 35 additions and 12 deletions

View File

@@ -23,6 +23,7 @@ enum ZoningEvaluationMode {
ZEM_AUTHORITY, ///< Check the local authority's opinion.
ZEM_CAN_BUILD, ///< Check wither or not the player can build.
ZEM_STA_CATCH, ///< Check catchment area for stations
ZEM_STA_CATCH_WIN, ///< Check catchment area for stations with their station windows open
ZEM_BUL_UNSER, ///< Check for unserved buildings
ZEM_IND_UNSER, ///< Check for unserved industries
};
@@ -48,4 +49,9 @@ void ShowZoningToolbar();
void ZoningMarkDirtyStationCoverageArea(const Station *st);
inline void ZoningMarkDirtyStationCoverageArea(const Waypoint *st) { } // no-op
inline void ZoningStationWindowOpenClose(const Station *st)
{
if (_zoning.inner == ZEM_STA_CATCH_WIN || _zoning.outer == ZEM_STA_CATCH_WIN) ZoningMarkDirtyStationCoverageArea(st);
}
#endif /* ZONING_H */