version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.25 2002/09/07 22:08:07 mwedel Exp $"; | | * "$Id: init.c,v 1.26 2002/09/11 06:21:46 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
{"-m8", 0, 3, set_dumpmon8}, | | {"-m8", 0, 3, set_dumpmon8}, |
{"-m9", 0, 3, set_dumpmon9}, | | {"-m9", 0, 3, set_dumpmon9}, |
{"-mt", 1, 3, set_dumpmont}, | | {"-mt", 1, 3, set_dumpmont}, |
| | {"-mexp", 0, 3, dump_experience}, |
#endif | | #endif |
{"-s", 0, 3, showscores}, | | {"-s", 0, 3, showscores}, |
{"-score", 1, 3, showscoresparm}, | | {"-score", 1, 3, showscoresparm}, |
| | |
"at least 0, %d is invalid\n", lev); | | "at least 0, %d is invalid\n", lev); |
else | | else |
settings.dynamiclevel = lev; | | settings.dynamiclevel = lev; |
| | } |
| | else if (!strcasecmp(buf,"simple_exp")) { |
| | if (!strcasecmp(cp,"on") || !strcasecmp(cp,"true")) { |
| | settings.simple_exp=TRUE; |
| | } else if (!strcasecmp(cp,"off") || !strcasecmp(cp,"false")) { |
| | settings.simple_exp=FALSE; |
| | } else { |
| | LOG(llevError,"load_settings: Unkown value for simple_exp: %s\n", |
| | cp); |
| | } |
} else { | | } else { |
LOG(llevError,"Unknown value in settings file: %s\n", buf); | | LOG(llevError,"Unknown value in settings file: %s\n", buf); |
} | | } |