fix W343-7 - strange topten output on Windows
Move the toptenwin option from flags to iflags to keep it out of save files, thus preventing odd behavior from win32 (nethackW.exe) when restoring and finishing games started and saved with tty (nethack.exe). [See cvs log entry for flag.h for more complete explanation.]
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* NetHack 3.5 wingem.c $Date$ $Revision$ */
|
||||
/* SCCS Id: @(#)wingem.c 3.5 1999/12/10 */
|
||||
/* Copyright (c) Christian Bressler, 1999 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -573,7 +572,7 @@ Gem_exit_nhwindows(str)
|
||||
{
|
||||
if(str) Gem_raw_print(str);
|
||||
mar_exit_nhwindows();
|
||||
if(flags.toptenwin)
|
||||
if(iflags.toptenwin)
|
||||
run_from_desktop=FALSE;
|
||||
iflags.window_inited = 0;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/* NetHack 3.5 mswproc.c $Date$ $Revision$ */
|
||||
/* SCCS Id: @(#)mswproc.c 3.5 2005/01/23 */
|
||||
/* Copyright (C) 2001 by Alex Kompel */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -218,7 +217,7 @@ void mswin_init_nhwindows(int* argc, char** argv)
|
||||
* write output to a window or stdout. stdout doesn't make sense on Windows
|
||||
* non-console applications
|
||||
*/
|
||||
flags.toptenwin = 1;
|
||||
iflags.toptenwin = 1;
|
||||
set_option_mod_status("toptenwin", SET_IN_FILE);
|
||||
set_option_mod_status("perm_invent", SET_IN_FILE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user