Opened 10 years ago

Closed 5 years ago

#2803 closed defect (duplicate)

Gamesetup should have a clean way to reset map settings

Reported by: serveurix Owned by:
Priority: Should Have Milestone:
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by elexis)

Go in the match setup screen. Choose "Scenario" > a circular map like "Battle for the Tiber". Than select an other map in scenarios, square this time, like "Fast Oasis". Launch the match.

Congratulations, your square map is now round ! \o/

Reveal the map via the dev overlay, for fun :

Your unusable civ center has disappeared ! \o/ You can make it reappear at any time by reactivating the fog of war. But you can't destroy it, it is in the fog of war. _o_ You've got to wait for an enemy to liberate you. Or resign.

Change History (6)

comment:1 by serveurix, 10 years ago

Description: modified (diff)

comment:2 by mimo, 10 years ago

In 15757:

reset some map attribute, addresses #2803

comment:3 by mimo, 10 years ago

Summary: Square map turned into circular mapWe should have a clean way to reset map settings

The problem was analogous to #2793. Some maps do not define some settings (usually because they use the default), but these are not reset in gamesetup.js. The problem is that the settings object contains settings defined at different level and there is no way to know which ones have been set by the previous maps. In this fix and the one from #2793, the faulty settings have been reset by hand, but we should have a way to determine which one have to be reset.

comment:4 by mimo, 9 years ago

In 16278:

fix initialization when changing maps, refs #2803

comment:5 by elexis, 8 years ago

Same as #3883

comment:6 by elexis, 5 years ago

Component: Core engineUI & Simulation
Description: modified (diff)
Milestone: Backlog
Resolution: duplicate
Status: newclosed
Summary: We should have a clean way to reset map settingsGamesetup should have a clean way to reset map settings

Closing as duplicate of #2803 since that contains a bit more information/desparation.

Note: See TracTickets for help on using tickets.