ufoaiorg / ufoai

UFO:Alien Invasion
http://ufoai.org
GNU General Public License v2.0
148 stars 51 forks source link

Fix remembering of radar overlay state on geomap #48

Closed vincent-legoll closed 4 years ago

vincent-legoll commented 4 years ago

The radar overlay remembering is done on the wrong level: the GEO_SetOverlay_f() console command instead of the underlying GEO_SetOverlay(). Move this handling therein.

To reproduce: in a campaign game, on geoscape, toggle the radar overlay view on, then click on the globe, or select a base and exit back to geoscape to find that the radar overlay has been disabled back instead of being properly remembered.

vincent-legoll commented 4 years ago

This is not the right fix, and not the proper way to contribute