Skip to content

Instantly share code, notes, and snippets.

@tung
Created April 12, 2011 03:16
Show Gist options
  • Save tung/914851 to your computer and use it in GitHub Desktop.
Save tung/914851 to your computer and use it in GitHub Desktop.
NetHack patch to fix the DECgraphics file option not working due to my own over-patching.
diff -U 3 -r nethack-3.4.3-pre-defername/sys/unix/unixmain.c nethack-3.4.3/sys/unix/unixmain.c
--- nethack-3.4.3-pre-defername/sys/unix/unixmain.c 2011-04-09 15:33:59.000000000 +1000
+++ nethack-3.4.3/sys/unix/unixmain.c 2011-04-11 00:39:42.000000000 +1000
@@ -160,6 +160,12 @@
#endif
/*
+ * Set DECgraphics again in case option loading didn't set it.
+ */
+ if(iflags.DECgraphics)
+ switch_graphics(DEC_GRAPHICS);
+
+ /*
* It seems you really want to play.
*/
u.uhp = 1; /* prevent RIP on early quits */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment