Small cleanup

svn-id: r9290
This commit is contained in:
Travis Howell 2003-07-30 10:05:09 +00:00
parent 269757dabc
commit f503013b5a
3 changed files with 9 additions and 14 deletions

View File

@ -424,7 +424,6 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
_dump_file = 0;
_number_of_savegames = 0;
_saveload_row_curpos = 0;
_num_savegame_rows = 0;
_savedialog_flag = false;
@ -2607,7 +2606,7 @@ void SimonEngine::savegame_dialog(char *buf) {
void SimonEngine::save_or_load_dialog(bool load) {
time_t save_time;
int num = _number_of_savegames;
int number_of_savegames;
int i;
int unk132_result;
FillOrCopyStruct *fcs;
@ -2622,18 +2621,18 @@ void SimonEngine::save_or_load_dialog(bool load) {
_copy_partial_mode = 1;
_number_of_savegames = num = count_savegames();
number_of_savegames = count_savegames();
if (!load)
num++;
num -= 6;
if (num < 0)
num = 0;
num++;
_num_savegame_rows = num;
number_of_savegames++;
number_of_savegames -= 6;
if (number_of_savegames < 0)
number_of_savegames = 0;
number_of_savegames++;
_num_savegame_rows = number_of_savegames;
_saveload_row_curpos = 1;
if (!load)
_saveload_row_curpos = num;
_saveload_row_curpos = number_of_savegames;
_saveload_flag = false;

View File

@ -334,8 +334,6 @@ protected:
FILE *_dump_file;
int _number_of_savegames;
int _saveload_row_curpos;
int _num_savegame_rows;
bool _savedialog_flag;

View File

@ -673,8 +673,6 @@ void SimonEngine::vc_10_draw() {
state.depack_src = vc_10_depack_swap(state.depack_src, width, height);
} else if (state.e & 1) {
state.depack_src = vc_10_no_depack_swap(state.depack_src, width, height);
// debug(5,"vc_10_no_depack_swap unimpl");
// state.depack_src = vc_10_depack_swap(state.depack_src, width, height);
}
vlut = &_video_windows[_video_palette_mode * 4];