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

Function cnf_line_BONES_POOLS

src/cfgfiles.c:873–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873staticfn boolean
874cnf_line_BONES_POOLS(char *bufp)
875{
876 /* max value of 10 guarantees (N % bones.pools) will be one digit
877 so we don't lose control of the length of bones file names */
878 int n = atoi(bufp);
879
880 sysopt.bones_pools = (n <= 0) ? 0 : min(n, 10);
881 /* note: right now bones_pools==0 is the same as bones_pools==1,
882 but we could change that and make bones_pools==0 become an
883 indicator to suppress bones usage altogether */
884 return TRUE;
885}
886
887staticfn boolean
888cnf_line_SUPPORT(char *bufp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected