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:
nethack.rankin
2011-09-19 03:10:01 +00:00
parent 171721adda
commit ddf5aced48
6 changed files with 9 additions and 11 deletions

View File

@@ -180,7 +180,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);
/* initialize map tiles bitmap */