From bcc2abe5175ad5750d9f7c672fd4d2f6cfc42ff7 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sat, 24 Oct 2009 14:50:44 +0000 Subject: [PATCH] Allow wizard mode to be compiled out --- rogue3/command.c | 2 ++ rogue3/main.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/rogue3/command.c b/rogue3/command.c index eed4af2..9fd3e8e 100644 --- a/rogue3/command.c +++ b/rogue3/command.c @@ -193,6 +193,7 @@ command() exit(0); } when '.' : ; /* Rest command */ +#ifdef WIZARD when CTRL('P') : after = FALSE; if (wizard) @@ -211,6 +212,7 @@ command() else msg("Sorry"); } +#endif when ESCAPE : /* Escape */ door_stop = FALSE; count = 0; diff --git a/rogue3/main.c b/rogue3/main.c index 13d7dc9..7cf623b 100644 --- a/rogue3/main.c +++ b/rogue3/main.c @@ -47,6 +47,8 @@ char **envp; score(0, -1, 0); exit(0); } + +#ifdef WIZARD /* * Check to see if he is a wizard */ @@ -57,6 +59,7 @@ char **envp; argv++; argc--; } +#endif /* Are we using the system savefile directory? */ #ifdef SAVEDIR