validate wizard mode if player has requested access to it */
| 470 | |
| 471 | /* validate wizard mode if player has requested access to it */ |
| 472 | boolean |
| 473 | authorize_wizard_mode(void) |
| 474 | { |
| 475 | if (!strcmpi(nh_getenv("USER"), WIZARD_NAME)) |
| 476 | return TRUE; |
| 477 | wiz_error_flag = TRUE; /* not being allowed into wizard mode */ |
| 478 | return FALSE; |
| 479 | } |
| 480 | |
| 481 | /* similar to above, validate explore mode access */ |
| 482 | boolean |
no test coverage detected