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

Function optfn_dungeon

src/options.c:1571–1591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569}
1570
1571staticfn int
1572optfn_dungeon(
1573 int optidx UNUSED, int req, boolean negated UNUSED,
1574 char *opts, char *op UNUSED)
1575{
1576 if (req == do_init) {
1577 return optn_ok;
1578 }
1579 if (req == do_set) {
1580 return optn_ok;
1581 }
1582 if (req == get_val) {
1583 Sprintf(opts, "%s", to_be_done);
1584 return optn_ok;
1585 }
1586 if (req == get_cnf_val) {
1587 opts[0] = '\0';
1588 return optn_ok;
1589 }
1590 return optn_ok;
1591}
1592
1593staticfn int
1594optfn_effects(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected