comparison rogue3/command.c @ 11:949d558c2162

Allow wizard mode to be compiled out
author edwarj4
date Sat, 24 Oct 2009 14:50:44 +0000
parents 78df7025783b
children a731f515575e
comparison
equal deleted inserted replaced
10:b343f42c1f01 11:949d558c2162
191 endwin(); 191 endwin();
192 printf("See you soon, %s!\n", whoami); 192 printf("See you soon, %s!\n", whoami);
193 exit(0); 193 exit(0);
194 } 194 }
195 when '.' : ; /* Rest command */ 195 when '.' : ; /* Rest command */
196 #ifdef WIZARD
196 when CTRL('P') : 197 when CTRL('P') :
197 after = FALSE; 198 after = FALSE;
198 if (wizard) 199 if (wizard)
199 { 200 {
200 wizard = FALSE; 201 wizard = FALSE;
209 waswizard = TRUE; 210 waswizard = TRUE;
210 } 211 }
211 else 212 else
212 msg("Sorry"); 213 msg("Sorry");
213 } 214 }
215 #endif
214 when ESCAPE : /* Escape */ 216 when ESCAPE : /* Escape */
215 door_stop = FALSE; 217 door_stop = FALSE;
216 count = 0; 218 count = 0;
217 after = FALSE; 219 after = FALSE;
218 otherwise : 220 otherwise :