version 1.73 | | version 1.74 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.73 2006/02/10 23:59:27 akirschbaum Exp $"; | | * "$Id: init.c,v 1.74 2006/03/07 18:46:26 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
"stat_loss_on_death: %s\n", cp); | | "stat_loss_on_death: %s\n", cp); |
} | | } |
} else if (!strcasecmp(buf, "use_permanent_experience")) { | | } else if (!strcasecmp(buf, "use_permanent_experience")) { |
if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) { | | LOG(llevError, "use_permanent_experience is deprecated, use" |
settings.use_permanent_experience=TRUE; | | "permenent_experience_percentage instead\n"); |
} else if (!strcasecmp(cp, "off") || !strcasecmp(cp, "false")) { | | } else if (!strcasecmp(buf, "permanent_experience_percentage")) { |
settings.use_permanent_experience=FALSE; | | int val = atoi(cp); |
} else { | | if (val < 0 || val >100) |
LOG(llevError, "load_settings: Unknown value for " | | LOG(llevError, "load_settings: permenent_experience_percentage" |
"use_permanent_experience: %s\n", cp); | | "must be between 0 and 100, %d is invalid\n", val); |
} | | else |
| | settings.permanent_exp_ratio = val; |
| | } else if (!strcasecmp(buf, "death_penalty_percentage")) { |
| | int val = atoi(cp); |
| | if (val < 0 || val >100) |
| | LOG(llevError, "load_settings: death_penalty_percentage" |
| | "must be between 0 and 100, %d is invalid\n", val); |
| | else |
| | settings.death_penalty_ratio = val; |
| | } else if (!strcasecmp(buf, "death_penalty_levels")) { |
| | int val = atoi(cp); |
| | if (val < 0 || val > 255) |
| | LOG(llevError, "load_settings: death_penalty_levels" |
| | "can not be negative, %d is invalid\n", val); |
| | else |
| | settings.death_penalty_level = val; |
} else if (!strcasecmp(buf, "balanced_stat_loss")) { | | } else if (!strcasecmp(buf, "balanced_stat_loss")) { |
if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) { | | if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) { |
settings.balanced_stat_loss=TRUE; | | settings.balanced_stat_loss=TRUE; |