changeset 139:0d151573bdb0

xrogue: compile out wizard mode by default.
author John "Elwin" Edwards
date Tue, 05 May 2015 12:07:12 -0400
parents dd137c35c3b1
children 856017d63519
files xrogue/command.c xrogue/mach_dep.h xrogue/main.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/xrogue/command.c	Tue May 05 11:24:02 2015 -0400
+++ b/xrogue/command.c	Tue May 05 12:07:12 2015 -0400
@@ -445,6 +445,7 @@
             }
             after = FALSE;
                     when CTRL('P') :
+#ifdef WIZARD
                         after = FALSE;
                         if (wizard)
                         {
@@ -462,6 +463,9 @@
                             else
                                 msg("Sorry");
                         }
+#else
+                        msg("Sorry");
+#endif
 
                     otherwise :
                         after = FALSE;
--- a/xrogue/mach_dep.h	Tue May 05 11:24:02 2015 -0400
+++ b/xrogue/mach_dep.h	Tue May 05 12:07:12 2015 -0400
@@ -19,6 +19,7 @@
 /*
  * define/undefine that the wizard commands exist
  */
+#undef WIZARD
 
 #if defined(_WIN32)
 #define fstat _fstat
--- a/xrogue/main.c	Tue May 05 11:24:02 2015 -0400
+++ b/xrogue/main.c	Tue May 05 12:07:12 2015 -0400
@@ -119,6 +119,7 @@
     /*
      * Check to see if he is a wizard
      */
+#ifdef WIZARD
     if (argc >= 2 && argv[1][0] == '\0')
         if (strcmp(PASSWD, xcrypt(md_getpass("Wizard's password: "), "mT")) == 0)
         {
@@ -126,6 +127,7 @@
             argv++;
             argc--;
         }
+#endif
 
     if (betaover())
     {