forked from github/server
"Tarnung und Bilden neuer Einheiten" Tarn-Status wird vererbt
This commit is contained in:
parent
29cfece1f3
commit
4a75e13cb0
|
@ -1963,10 +1963,20 @@ create_unit(region * r, faction * f, int number, const struct race *urace, int i
|
|||
u->ship = creator->ship;
|
||||
}
|
||||
|
||||
/* Temps von parteigetarnten Einheiten sind wieder parteigetarnt */
|
||||
if (fval(creator, UFL_PARTEITARNUNG))
|
||||
fset(u, UFL_PARTEITARNUNG);
|
||||
/* Tarnlimit wird vererbt */
|
||||
if (fval(creator, UFL_STEALTH)) {
|
||||
attrib * a = a_find(creator->attribs, &at_stealth);
|
||||
if (a) {
|
||||
int stealth = a->data.i;
|
||||
a = a_add(&u->attribs, a_new(&at_stealth));
|
||||
a->data.i = stealth;
|
||||
}
|
||||
}
|
||||
|
||||
/* Temps von parteigetarnten Einheiten sind wieder parteigetarnt */
|
||||
if (fval(creator, UFL_PARTEITARNUNG)) {
|
||||
fset(u, UFL_PARTEITARNUNG);
|
||||
}
|
||||
/* Daemonentarnung */
|
||||
set_racename(&u->attribs, get_racename(creator->attribs));
|
||||
if (fval(u->race, RCF_SHAPESHIFT) && fval(creator->race, RCF_SHAPESHIFT)) {
|
||||
|
|
|
@ -2953,7 +2953,7 @@ sp_firewall(castorder *co)
|
|||
b = get_borders(r, r2);
|
||||
while (b!=NULL) {
|
||||
if (b->type == &bt_firewall) break;
|
||||
b = b->next;
|
||||
b = b->next;
|
||||
}
|
||||
if (b==NULL) {
|
||||
b = new_border(&bt_firewall, r, r2);
|
||||
|
|
|
@ -234,9 +234,6 @@ static lstr lstrs[MAXLOCALES];
|
|||
struct tnode *
|
||||
get_translations(const struct locale * lang, int index)
|
||||
{
|
||||
static struct lstr * lnames = NULL;
|
||||
static const struct locale * lastlang = NULL;
|
||||
|
||||
assert(lang->index<MAXLOCALES || "you have to increase MAXLOCALES and recompile");
|
||||
if (lang->index<MAXLOCALES) {
|
||||
return lstrs[lang->index].tokens+index;
|
||||
|
|
Loading…
Reference in New Issue