]> granicus.if.org Git - nethack/commitdiff
fix a 'program in disorder' in tt_oname NetHack-3.6.0_RC05 NetHack-3.6.0_Release
authornhmall <mjnh@persona.ca>
Mon, 7 Dec 2015 11:48:05 +0000 (06:48 -0500)
committernhmall <mjnh@persona.ca>
Mon, 7 Dec 2015 11:48:05 +0000 (06:48 -0500)
 Changes to be committed:
modified:   win/win32/winhack.c

sys_early_init was never called for win32 GUI. That was causing "rnd(0) -
program in disorder" in tt_oname.

win/win32/winhack.c

index d47762d8cc0918e9911ac1fb0e5236890edc15cb..a85bdc478e6bc3d963f0ec13addec33872215614 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6    winhack.c    $NHDT-Date: 1434803624 2015/06/20 12:33:44 $  $NHDT-Branch: win32-x64-working $:$NHDT-Revision: 1.43 $ */
+/* NetHack 3.6    winhack.c    $NHDT-Date: 1449488876 2015/12/07 11:47:56 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.44 $ */
 /* Copyright (C) 2001 by Alex Kompel      */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -88,6 +88,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
     UNREFERENCED_PARAMETER(lpCmdLine);
     UNREFERENCED_PARAMETER(nCmdShow);
 
+    sys_early_init();
+
     /* ensure that we don't access violate on a panic() */
     windowprocs.win_raw_print = mswin_raw_print;
     windowprocs.win_raw_print_bold = mswin_raw_print_bold;