Revert "Fuzzer improvements."

This reverts commit 435f1c4626.
This commit is contained in:
Bart House
2019-07-14 21:10:39 -07:00
parent 5d2181ced3
commit 4c1c247028
14 changed files with 8 additions and 337 deletions
+2 -8
View File
@@ -475,14 +475,8 @@ int *x, *y, *mod;
coord cc;
DWORD count;
really_move_cursor();
if (iflags.debug_fuzzer) {
int poskey = randomkey();
if (poskey == 0) {
*x = rn2(console.width);
*y = rn2(console.height);
}
return poskey;
}
if (iflags.debug_fuzzer)
return randomkey();
ch = (program_state.done_hup)
? '\033'
: keyboard_handler.pCheckInput(
+1 -18
View File
@@ -336,7 +336,7 @@ attempt_restore:
resuming = TRUE; /* not starting new game */
if (discover)
You("are in non-scoring discovery mode.");
if ((discover || wizard) && !iflags.fuzzer_auto_start) {
if (discover || wizard) {
if (yn("Do you want to keep the save file?") == 'n')
(void) delete_savefile();
else {
@@ -461,23 +461,6 @@ char *argv[];
case 'X':
discover = TRUE, wizard = FALSE;
break;
case 'F':
{
iflags.fuzzer_auto_start = 1;
if (argc > 1 && argv[1][0] != '-') {
argc--;
argv++;
iflags.fuzzer_stop_and_save = atoi(*argv);
if (argc > 1 && argv[1][0] != '-') {
argc--;
argv++;
iflags.verbose_logging_start = atoi(*argv);
}
}
}
break;
#ifdef NEWS
case 'n':
iflags.news = FALSE;