Stop storing preferences and legacy flags in the saved game

- Nuke global preference variables (they're now fetched with get_xxx_pref whenever needed)
- Nuke magic SDFs that store preferences and other info
- The only preferences now stored in the saved game are those related to difficulty
- play_sound no longer takes an option repeat parameter, but instead takes a delay which will be used if sounds are disabled
- SDF array increased to 350x50
- When saving a legacy scenario, a dialog is shown to remind you to update and to allow you to clear the legacy flag
This commit is contained in:
2015-10-06 18:01:35 -04:00
parent 906016b98d
commit d19880a463
28 changed files with 191 additions and 251 deletions

View File

@@ -23,11 +23,10 @@
extern sf::RenderWindow mainPtr;
extern rectangle windRect;
extern short stat_window;
extern bool give_delays;
extern bool cartoon_happening;
extern eGameMode overall_mode;
extern short current_spell_range;
extern bool anim_onscreen,play_sounds,frills_on;
extern bool anim_onscreen,frills_on;
extern cUniverse univ;
extern effect_pat_type current_pat;
extern sf::RenderWindow mini_map;
@@ -43,7 +42,6 @@ extern bool monsters_going,anim_onscreen;
extern short num_targets_left;
extern location spell_targets[8];
extern short display_mode;
extern long anim_ticks;