changeset 100:1e88eb1942a5

srogue: allow wizard mode to be compiled out.
author John "Elwin" Edwards
date Sat, 31 Aug 2013 14:24:31 -0700
parents dfeed24bb616
children 15f8229f38c1
files srogue/command.c srogue/main.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/srogue/command.c	Sat Aug 31 09:18:07 2013 -0700
+++ b/srogue/command.c	Sat Aug 31 14:24:31 2013 -0700
@@ -199,6 +199,7 @@
 						activity();
 						after = FALSE;
 					}
+#ifdef WIZARD
 				when CTRL('P') :
 					after = FALSE;
 					if (wizard) {
@@ -214,6 +215,7 @@
 						else
 							msg("Sorry");
 					}
+#endif
 				when ESCAPE :	/* Escape */
 					door_stop = FALSE;
 					count = 0;
--- a/srogue/main.c	Sat Aug 31 09:18:07 2013 -0700
+++ b/srogue/main.c	Sat Aug 31 14:24:31 2013 -0700
@@ -94,6 +94,7 @@
 		exit(0);
 	}
 
+#ifdef WIZARD
 	if (argc >= 2 && author() && strcmp(argv[1],"-a") == 0)
 	{
 		wizard = TRUE;
@@ -112,6 +113,7 @@
 			argc--;
 		}
 	}
+#endif
 	time(&now);
 	lowtime = (int) now;