xrogue: compile out wizard mode by default.

This commit is contained in:
John "Elwin" Edwards 2015-05-05 12:07:12 -04:00
parent 9c0cafd74d
commit 85a0b26fa3
3 changed files with 7 additions and 0 deletions

View file

@ -445,6 +445,7 @@ command()
}
after = FALSE;
when CTRL('P') :
#ifdef WIZARD
after = FALSE;
if (wizard)
{
@ -462,6 +463,9 @@ command()
else
msg("Sorry");
}
#else
msg("Sorry");
#endif
otherwise :
after = FALSE;

View file

@ -19,6 +19,7 @@
/*
* define/undefine that the wizard commands exist
*/
#undef WIZARD
#if defined(_WIN32)
#define fstat _fstat

View file

@ -119,6 +119,7 @@ char **envp;
/*
* 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 @@ char **envp;
argv++;
argc--;
}
#endif
if (betaover())
{