forked from github/server
Befehl beim Burgenbau ändert sich: 'BURG' wird durch '(null)' ersetzt
This commit is contained in:
parent
3b93947d3f
commit
862d02504f
|
@ -801,7 +801,7 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
|
||||||
building * b = NULL;
|
building * b = NULL;
|
||||||
/* einmalige Korrektur */
|
/* einmalige Korrektur */
|
||||||
static char buffer[8 + IDSIZE + 1 + NAMESIZE + 1];
|
static char buffer[8 + IDSIZE + 1 + NAMESIZE + 1];
|
||||||
const char *btname = NULL;
|
const char * btname;
|
||||||
order * new_order = NULL;
|
order * new_order = NULL;
|
||||||
const struct locale * lang = u->faction->locale;
|
const struct locale * lang = u->faction->locale;
|
||||||
|
|
||||||
|
@ -912,20 +912,11 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
|
||||||
newbuilding = true;
|
newbuilding = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newbuilding) {
|
btname = LOC(lang, btype->_name);
|
||||||
if (b->type->name==NULL) {
|
|
||||||
btname = LOC(lang, b->type->_name);
|
|
||||||
} else {
|
|
||||||
btname = LOC(lang, buildingtype(b, b->size));
|
|
||||||
if (b->type->maxsize != -1) {
|
|
||||||
want = b->type->maxsize - b->size;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (want-built <= 0) {
|
if (want-built <= 0) {
|
||||||
/* gebäude fertig */
|
/* gebäude fertig */
|
||||||
strcpy(buffer, locale_string(lang, "defaultorder"));
|
strcpy(buffer, LOC(lang, "defaultorder"));
|
||||||
new_order = parse_order(buffer, lang);
|
new_order = parse_order(buffer, lang);
|
||||||
} else if (want!=INT_MAX) {
|
} else if (want!=INT_MAX) {
|
||||||
/* reduzierte restgröße */
|
/* reduzierte restgröße */
|
||||||
|
|
Loading…
Reference in New Issue