fire-eggs / CivOne

An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
Creative Commons Zero v1.0 Universal
21 stars 4 forks source link

Observed: "active" unit logic happens even when game map is completely obscured #109

Open fire-eggs opened 5 years ago

fire-eggs commented 5 years ago

"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:

Probably need to clear the ActiveUnit property of GameMap.cs as soon as city build starts.

fire-eggs commented 5 years ago

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.