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

Function cnf_line_PERSMAX

src/cfgfiles.c:968–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968staticfn boolean
969cnf_line_PERSMAX(char *bufp)
970{
971 int n = atoi(bufp);
972
973 if (n < 1) {
974 config_error_add("Illegal value in PERSMAX (minimum is 1)");
975 n = 0;
976 }
977 sysopt.persmax = n;
978 return TRUE;
979}
980
981staticfn boolean
982cnf_line_PERS_IS_UID(char *bufp)

Callers

nothing calls this directly

Calls 1

config_error_addFunction · 0.85

Tested by

no test coverage detected