nethack -X vs normal game (trunk only)
Reported to the beta-testers list by <Someone> last April: restoring a normal game save file in explore mode let you keep the file, then after exploring and quitting without saving, you could restore it again in normal mode and take advantage of whatever information you'd gained. This makes nethack -X (or playmode:explore) defer the switch to explore mode when used while restoring a normal mode save file. It now performs a normal restore (with save file deletion) and then acts as if the user had given the 'X' command interactively, requiring confirmation to actually switch into explore mode.
This commit is contained in:
@@ -162,7 +162,6 @@ E int NDECL(domonability);
|
||||
E int NDECL(doprev_message);
|
||||
E int NDECL(timed_occupation);
|
||||
E int NDECL(doattributes);
|
||||
E int NDECL(enter_explore_mode);
|
||||
# ifdef WIZARD
|
||||
E int NDECL(wiz_detect);
|
||||
E int NDECL(wiz_genesis);
|
||||
@@ -187,6 +186,7 @@ E void FDECL(reset_commands, (BOOLEAN_P));
|
||||
E void FDECL(rhack, (char *));
|
||||
E int NDECL(doextlist);
|
||||
E int NDECL(extcmd_via_menu);
|
||||
E int NDECL(enter_explore_mode);
|
||||
E void FDECL(enlightenment, (int));
|
||||
E void FDECL(show_conduct, (int));
|
||||
E int FDECL(xytod, (SCHAR_P,SCHAR_P));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)flag.h 3.5 2005/11/19 */
|
||||
/* SCCS Id: @(#)flag.h 3.5 2007/02/16 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -174,6 +174,7 @@ struct instance_flags {
|
||||
int *opt_booldup; /* for duplication of boolean opts in config file */
|
||||
int *opt_compdup; /* for duplication of compound opts in config file */
|
||||
boolean cbreak; /* in cbreak mode, rogue format */
|
||||
boolean deferred_X; /* deferred entry into explore mode */
|
||||
boolean num_pad; /* use numbers for movement commands */
|
||||
boolean news; /* print news */
|
||||
boolean menu_tab_sep; /* Use tabs to separate option menu fields */
|
||||
|
||||
Reference in New Issue
Block a user