Ticket #958 (closed enhancement: fixed)
[PATCH] Allow building in fog of war, within player's territory
|Reported by:||historic_bruno||Owned by:||historic_bruno|
|Priority:||Must Have||Milestone:||Alpha 8|
A player's territory will always be explored (either visible or in FoW), so they should be allowed to build anywhere in that territory. CmpRangeManager::GetLosVisibility() can't be used to check FoW because it uses rendering concepts like RetainInFog that would break preview entities. The attached patch adds CmpRangeManager::GetLosState() which checks the internal LOS state and reveal all players flag, returning a value corresponding to explored, unexplored or visible. It also moves the visibility check into BuildRestrictions for consistency.
- Keywords review added
- Summary changed from Allow building in fog of war, within player's territory to [PATCH] Allow building in fog of war, within player's territory