forked from github/server
- Bei Einheiten mit speziellen Rassen steht keine Rasse mehr
This commit is contained in:
parent
3e5bb80b02
commit
6f51f73769
|
@ -261,7 +261,7 @@ bufunit(const faction * f, const unit * u, int indent, int mode)
|
||||||
|
|
||||||
pzTmp = get_racename(u->attribs);
|
pzTmp = get_racename(u->attribs);
|
||||||
if (pzTmp) {
|
if (pzTmp) {
|
||||||
scat(pzTmp);
|
bufp += strlcpy(bufp, pzTmp, sizeof(buf)-(bufp-buf));
|
||||||
if (u->faction==f && fval(u->race, RCF_SHAPESHIFTANY)) {
|
if (u->faction==f && fval(u->race, RCF_SHAPESHIFTANY)) {
|
||||||
bufp += strlcpy(bufp, " (", sizeof(buf)-(bufp-buf));
|
bufp += strlcpy(bufp, " (", sizeof(buf)-(bufp-buf));
|
||||||
bufp += strlcpy(bufp, racename(f->locale, u, u->race), sizeof(buf)-(bufp-buf));
|
bufp += strlcpy(bufp, racename(f->locale, u, u->race), sizeof(buf)-(bufp-buf));
|
||||||
|
|
|
@ -287,7 +287,7 @@ parse_buildings(xmlDocPtr doc)
|
||||||
property = xmlGetProp(node, BAD_CAST "type");
|
property = xmlGetProp(node, BAD_CAST "type");
|
||||||
assert(property!=NULL);
|
assert(property!=NULL);
|
||||||
mt->rtype = rt_find((const char*)property);
|
mt->rtype = rt_find((const char*)property);
|
||||||
assert(mt->rtype!=NULL);
|
assert(mt->rtype!=NULL);
|
||||||
xmlFree(property);
|
xmlFree(property);
|
||||||
|
|
||||||
if (xml_bvalue(node, "variable", false)) mt->flags |= MTF_VARIABLE;
|
if (xml_bvalue(node, "variable", false)) mt->flags |= MTF_VARIABLE;
|
||||||
|
@ -1054,7 +1054,7 @@ parse_messages(xmlDocPtr doc)
|
||||||
xmlChar * text;
|
xmlChar * text;
|
||||||
|
|
||||||
xml_readtext(node, &lang, &text);
|
xml_readtext(node, &lang, &text);
|
||||||
xml_cleanup_string(text);
|
xml_cleanup_string(text);
|
||||||
nrt_register(mtype, lang, xml_to_locale(text), 0, (const char*)section);
|
nrt_register(mtype, lang, xml_to_locale(text), 0, (const char*)section);
|
||||||
xmlFree(text);
|
xmlFree(text);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue