Mercurial > hg > early-roguelike
comparison xrogue/main.c @ 139:0d151573bdb0
xrogue: compile out wizard mode by default.
author | John "Elwin" Edwards |
---|---|
date | Tue, 05 May 2015 12:07:12 -0400 |
parents | 1fbdefa82533 |
children | 7faf4568c295 |
comparison
equal
deleted
inserted
replaced
138:dd137c35c3b1 | 139:0d151573bdb0 |
---|---|
117 } | 117 } |
118 | 118 |
119 /* | 119 /* |
120 * Check to see if he is a wizard | 120 * Check to see if he is a wizard |
121 */ | 121 */ |
122 #ifdef WIZARD | |
122 if (argc >= 2 && argv[1][0] == '\0') | 123 if (argc >= 2 && argv[1][0] == '\0') |
123 if (strcmp(PASSWD, xcrypt(md_getpass("Wizard's password: "), "mT")) == 0) | 124 if (strcmp(PASSWD, xcrypt(md_getpass("Wizard's password: "), "mT")) == 0) |
124 { | 125 { |
125 wizard = TRUE; | 126 wizard = TRUE; |
126 argv++; | 127 argv++; |
127 argc--; | 128 argc--; |
128 } | 129 } |
130 #endif | |
129 | 131 |
130 if (betaover()) | 132 if (betaover()) |
131 { | 133 { |
132 printf("Sorry, %s, but the test period of this prerelease version\n",whoami); | 134 printf("Sorry, %s, but the test period of this prerelease version\n",whoami); |
133 printf("of xrogue is over. Please acquire a new version. Sorry.\n"); | 135 printf("of xrogue is over. Please acquire a new version. Sorry.\n"); |