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;
|
after = FALSE;
|
||||||
when CTRL('P') :
|
when CTRL('P') :
|
||||||
|
#ifdef WIZARD
|
||||||
after = FALSE;
|
after = FALSE;
|
||||||
if (wizard)
|
if (wizard)
|
||||||
{
|
{
|
||||||
|
|
@ -462,6 +463,9 @@ command()
|
||||||
else
|
else
|
||||||
msg("Sorry");
|
msg("Sorry");
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
msg("Sorry");
|
||||||
|
#endif
|
||||||
|
|
||||||
otherwise :
|
otherwise :
|
||||||
after = FALSE;
|
after = FALSE;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
/*
|
/*
|
||||||
* define/undefine that the wizard commands exist
|
* define/undefine that the wizard commands exist
|
||||||
*/
|
*/
|
||||||
|
#undef WIZARD
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define fstat _fstat
|
#define fstat _fstat
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,7 @@ char **envp;
|
||||||
/*
|
/*
|
||||||
* Check to see if he is a wizard
|
* Check to see if he is a wizard
|
||||||
*/
|
*/
|
||||||
|
#ifdef WIZARD
|
||||||
if (argc >= 2 && argv[1][0] == '\0')
|
if (argc >= 2 && argv[1][0] == '\0')
|
||||||
if (strcmp(PASSWD, xcrypt(md_getpass("Wizard's password: "), "mT")) == 0)
|
if (strcmp(PASSWD, xcrypt(md_getpass("Wizard's password: "), "mT")) == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -126,6 +127,7 @@ char **envp;
|
||||||
argv++;
|
argv++;
|
||||||
argc--;
|
argc--;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (betaover())
|
if (betaover())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue