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:
@@ -37,6 +37,7 @@ extern int NDECL(doapply); /**/
|
||||
extern int NDECL(dorub); /**/
|
||||
extern int NDECL(dojump); /**/
|
||||
extern int NDECL(doextlist); /**/
|
||||
extern int NDECL(enter_explore_mode); /**/
|
||||
extern int NDECL(dodrop); /**/
|
||||
extern int NDECL(doddrop); /**/
|
||||
extern int NDECL(dodown); /**/
|
||||
@@ -155,7 +156,6 @@ STATIC_DCL int NDECL(wiz_port_debug);
|
||||
STATIC_PTR int NDECL(wiz_rumor_check);
|
||||
STATIC_DCL char FDECL(cmd_from_func, (int NDECL((*))));
|
||||
# endif /* WIZARD */
|
||||
STATIC_PTR int NDECL(enter_explore_mode);
|
||||
STATIC_PTR int NDECL(doattributes);
|
||||
STATIC_PTR int NDECL(doconduct); /**/
|
||||
STATIC_PTR boolean NDECL(minimal_enlightenment);
|
||||
@@ -489,7 +489,7 @@ domonability(VOID_ARGS)
|
||||
return 0;
|
||||
}
|
||||
|
||||
STATIC_PTR int
|
||||
int
|
||||
enter_explore_mode(VOID_ARGS)
|
||||
{
|
||||
if(!discover && !wizard) {
|
||||
|
||||
Reference in New Issue
Block a user