version 1.58 | | version 1.59 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.58 2005/03/20 22:20:40 majorwoo Exp $"; | | * "$Id: init.c,v 1.59 2005/04/15 00:41:34 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
tmp); | | tmp); |
else | | else |
settings.item_power_factor = tmp; | | settings.item_power_factor = tmp; |
| | } else if (!strcasecmp(buf, "pk_luck_penalty")) { |
| | sint16 val = atoi(cp); |
| | |
| | if (val < -100 || val >100) |
| | LOG(llevError, "load_settings: pk_luck_penalty must be between -10 and 10" |
| | ", %d is invalid\n", val); |
| | else |
| | settings.pk_luck_penalty = val; |
} else if (!strcasecmp(buf, "set_friendly_fire")) { | | } else if (!strcasecmp(buf, "set_friendly_fire")) { |
int val = atoi(cp); | | int val = atoi(cp); |
| | |