forked from github/server
compilation fixes
This commit is contained in:
parent
588c136071
commit
0a997cadcd
|
@ -815,7 +815,6 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
|
|||
int n = want, built = 0, id;
|
||||
building * b = NULL;
|
||||
/* einmalige Korrektur */
|
||||
static char buffer[8 + IDSIZE + 1 + NAMESIZE + 1];
|
||||
const xmlChar * btname;
|
||||
order * new_order = NULL;
|
||||
const struct locale * lang = u->faction->locale;
|
||||
|
@ -994,7 +993,6 @@ build_ship(unit * u, ship * sh, int want)
|
|||
void
|
||||
create_ship(region * r, unit * u, const struct ship_type * newtype, int want, order * ord)
|
||||
{
|
||||
static char buffer[IDSIZE + 2 * KEYWORDSIZE + 3];
|
||||
ship *sh;
|
||||
int msize;
|
||||
const construction * cons = newtype->construction;
|
||||
|
|
|
@ -440,12 +440,13 @@ new_building(const struct building_type * btype, region * r, const struct locale
|
|||
addlist(&r->buildings, b);
|
||||
|
||||
{
|
||||
static char buffer[IDSIZE + 1 + NAMESIZE + 1];
|
||||
if (b->type->name)
|
||||
sprintf(buffer, "%s", locale_string(lang, btype->_name));
|
||||
else
|
||||
sprintf(buffer, "%s", LOC(lang, buildingtype(btype, b, 0)));
|
||||
set_string(&b->name, buffer);
|
||||
const xmlChar * bname;
|
||||
if (b->type->name==NULL) {
|
||||
bname = LOC(lang, btype->_name);
|
||||
} else {
|
||||
bname = LOC(lang, buildingtype(btype, b, 0));
|
||||
}
|
||||
set_string(&b->name, bname);
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue