version 1.70 | | version 1.71 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.70 2005/12/05 23:34:04 akirschbaum Exp $"; | | * "$Id: init.c,v 1.71 2006/01/08 16:31:18 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
FILE *fp; | | FILE *fp; |
| | |
sprintf(buf,"%s/settings",settings.confdir); | | sprintf(buf,"%s/settings",settings.confdir); |
| | settings.no_player_stealing = TRUE; |
| | |
/* We don't require a settings file at current time, but down the road, | | /* We don't require a settings file at current time, but down the road, |
* there will probably be so many values that not having a settings file | | * there will probably be so many values that not having a settings file |
* will not be a good thing. | | * will not be a good thing. |
| | |
LOG(llevError, "load_settings: unknown value for armor_speed_linear: %s\n", cp); | | LOG(llevError, "load_settings: unknown value for armor_speed_linear: %s\n", cp); |
} | | } |
| | |
| | } else if ( !strcasecmp( buf, "no_player_stealing" ) ) { |
| | if (!strcasecmp(cp, "on") || !strcasecmp(cp, "true")) { |
| | settings.no_player_stealing = TRUE; |
| | } else if (!strcasecmp(cp, "off") || !strcasecmp(cp, "false")) { |
| | settings.no_player_stealing = FALSE; |
| | } else { |
| | LOG(llevError, "load_settings: unknown value for no_player_stealing: %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); |
} | | } |