changeset 11:949d558c2162

Allow wizard mode to be compiled out
author edwarj4
date Sat, 24 Oct 2009 14:50:44 +0000
parents b343f42c1f01
children 9535a08ddc39
files rogue3/command.c rogue3/main.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rogue3/command.c	Sat Oct 24 14:21:15 2009 +0000
+++ b/rogue3/command.c	Sat Oct 24 14:50:44 2009 +0000
@@ -193,6 +193,7 @@
 			exit(0);
 		    }
 		when '.' : ;			/* Rest command */
+#ifdef WIZARD
 		when CTRL('P') :
 		    after = FALSE;
 		    if (wizard)
@@ -211,6 +212,7 @@
 			else
 			    msg("Sorry");
 		    }
+#endif
 		when ESCAPE :	/* Escape */
 		    door_stop = FALSE;
 		    count = 0;
--- a/rogue3/main.c	Sat Oct 24 14:21:15 2009 +0000
+++ b/rogue3/main.c	Sat Oct 24 14:50:44 2009 +0000
@@ -47,6 +47,8 @@
 	score(0, -1, 0);
 	exit(0);
     }
+
+#ifdef WIZARD
     /*
      * Check to see if he is a wizard
      */
@@ -57,6 +59,7 @@
 	    argv++;
 	    argc--;
 	}
+#endif
 
 /* Are we using the system savefile directory? */
 #ifdef SAVEDIR