comparison rogue3/main.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
45 { 45 {
46 waswizard = TRUE; 46 waswizard = TRUE;
47 score(0, -1, 0); 47 score(0, -1, 0);
48 exit(0); 48 exit(0);
49 } 49 }
50
51 #ifdef WIZARD
50 /* 52 /*
51 * Check to see if he is a wizard 53 * Check to see if he is a wizard
52 */ 54 */
53 if (argc >= 2 && argv[1][0] == '\0') 55 if (argc >= 2 && argv[1][0] == '\0')
54 if (strcmp(PASSWD, crypt(md_getpass("Wizard's password: "), "mT")) == 0) 56 if (strcmp(PASSWD, crypt(md_getpass("Wizard's password: "), "mT")) == 0)
55 { 57 {
56 wizard = TRUE; 58 wizard = TRUE;
57 argv++; 59 argv++;
58 argc--; 60 argc--;
59 } 61 }
62 #endif
60 63
61 /* Are we using the system savefile directory? */ 64 /* Are we using the system savefile directory? */
62 #ifdef SAVEDIR 65 #ifdef SAVEDIR
63 if (argc >= 3 && !strcmp(argv[1], "-n")) 66 if (argc >= 3 && !strcmp(argv[1], "-n"))
64 { 67 {