CivOne
CivOne copied to clipboard
Observed: "active" unit logic happens even when game map is completely obscured
"Active" unit update logic is in GameMap.cs, HasUpdate(). See comment "// blink status". Add a "Console.WriteLine()" statement.
For instance, if the active unit is a settler:
- console output occurs
- user says "build city" - console output stops
- build city animation appears
- at end of city animation, city manager appears (fills screen)
- console output restarts, continues until city manager closed
Probably need to clear the ActiveUnit
property of GameMap.cs as soon as city build starts.
Probably need to clear the ActiveUnit property of GameMap.cs as soon as city build starts.
OK, this won't be sufficient. The ActiveUnit is being updated in the background even if the City Manager comes up because the user clicks on a city.
Need to be able to check to see if the CityManager screen is active, and skip the drawing of the ActiveUnit.