Fixed several bugs, including one where dialogs were not redrawn properly and one where random numbers were not in the expected range.

git-svn-id: http://openexile.googlecode.com/svn/trunk@36 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-27 13:14:24 +00:00
parent fa528023e7
commit 74ec4c67b5
14 changed files with 47 additions and 36 deletions

View File

@@ -1529,7 +1529,7 @@ void prefs_event_filter (short item_hit)
if (done_yet== TRUE) {
if (did_cancel == FALSE) {
display_mode = cur_display_mode;
PSD[SFD_NO_MAPS] = cd_get_led(1099,18);
PSD[SDF_NO_MAPS] = cd_get_led(1099,18);
PSD[SDF_NO_SOUNDS] = cd_get_led(1099,20);
play_sounds = 1 - PSD[SDF_NO_SOUNDS];
PSD[SDF_NO_FRILLS] = cd_get_led(1099,22);
@@ -1561,7 +1561,7 @@ void prefs_event_filter (short item_hit)
}*/
}
//play_sounds = 1 - PSD[SDF_NO_SOUNDS];
save_maps = 1 - PSD[SFD_NO_MAPS];
save_maps = 1 - PSD[SDF_NO_MAPS];
give_delays = PSD[SDF_NO_FRILLS];
save_prefs();
}
@@ -1579,7 +1579,7 @@ void pick_preferences()
cd_set_led(1099,4 + cur_display_mode,1);
cd_set_led(1099,18,(PSD[SFD_NO_MAPS] != 0) ? 1 : 0);
cd_set_led(1099,18,(PSD[SDF_NO_MAPS] != 0) ? 1 : 0);
cd_set_led(1099,20,(play_sounds == FALSE) ? 1 : 0);
cd_set_led(1099,22,(PSD[SDF_NO_FRILLS] != 0) ? 1 : 0);
cd_set_led(1099,24,(PSD[SDF_ROOM_DESCS_AGAIN] != 0) ? 1 : 0);