MCPcopy Create free account
hub / github.com/NetHack/NetHack / authorize_wizard_mode

Function authorize_wizard_mode

sys/share/pcmain.c:711–717  ·  view source on GitHub ↗

validate wizard mode if player has requested access to it */

Source from the content-addressed store, hash-verified

709
710/* validate wizard mode if player has requested access to it */
711boolean
712authorize_wizard_mode(void)
713{
714 if (!strcmp(svp.plname, WIZARD_NAME))
715 return TRUE;
716 return FALSE;
717}
718
719/* similar to above, validate explore mode access */
720boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected