porting.{hc}pp: add a namespace,

fileio_party.cpp: try to simplify the code which read legacy save,
boe.specials.cpp: correct a problem when unlocking rectangles...
This commit is contained in:
ALONSO Laurent
2021-09-29 15:17:51 +02:00
committed by Celtic Minstrel
parent 3d1faba4b2
commit e8e3b13c7c
10 changed files with 110 additions and 116 deletions

View File

@@ -74,7 +74,6 @@ void pick_preferences();
void save_prefs();
bool prefs_event_filter (cDialog& me, std::string id, eKeyMod);
extern bool cur_scen_is_mac;
extern fs::path progDir;
short specials_res_id;
char start_name[256];
@@ -531,7 +530,7 @@ void pick_preferences() {
float ui_scale = get_float_pref("UIScale", 1.0);
dynamic_cast<cLed&>(prefsDlog["scaleui"]).setState(ui_scale == 1.0 ? led_off : (ui_scale == 2.0 ? led_red : led_green));
dynamic_cast<cLed&>(prefsDlog["nosound"]).setState(get_bool_pref("PlaySounds", true) ? led_off : led_red);
prefsDlog.run();
if(get_float_pref("UIScale") != ui_scale)