Bug #1400 » 3_2-cities_ruleset_specialists_errors.patch
| server/ruleset.c | ||
|---|---|---|
|
/* Specialist options */
|
||
|
sec = secfile_sections_by_name_prefix(file, SPECIALIST_SECTION_PREFIX);
|
||
|
if (section_list_size(sec) >= SP_MAX) {
|
||
|
if (!sec) {
|
||
|
ruleset_error(NULL, LOG_ERROR, "\"%s\": No specialists.", filename);
|
||
|
ok = FALSE;
|
||
|
} else if (section_list_size(sec) >= SP_MAX) {
|
||
|
ruleset_error(NULL, LOG_ERROR,
|
||
|
"\"%s\": Too many specialists (%d, max %d).",
|
||
|
filename, section_list_size(sec), SP_MAX);
|
||
| ... | ... | |
|
if (ok && DEFAULT_SPECIALIST == -1) {
|
||
|
ruleset_error(NULL, LOG_ERROR,
|
||
|
"\"%s\": must give a min_size of 0 for at least one "
|
||
|
"\"%s\": must have zero reqs for at least one "
|
||
|
"specialist type.", filename);
|
||
|
ok = FALSE;
|
||
|
}
|
||
- « Previous
- 1
- 2
- Next »