xrogue: compile out wizard mode by default.
This commit is contained in:
parent
9c0cafd74d
commit
85a0b26fa3
3 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
/*
|
||||
* define/undefine that the wizard commands exist
|
||||
*/
|
||||
#undef WIZARD
|
||||
|
||||
#if defined(_WIN32)
|
||||
#define fstat _fstat
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue