forked from github/server
Bugfix Parteitarnung in Schiffen und Burgen
This commit is contained in:
parent
5f77569295
commit
117733928b
|
@ -1240,9 +1240,10 @@ report_computer(FILE * F, faction * f, const seen_region * seen,
|
||||||
for (b = rbuildings(r); b; b = b->next) {
|
for (b = rbuildings(r); b; b = b->next) {
|
||||||
int fno = -1;
|
int fno = -1;
|
||||||
u = buildingowner(r, b);
|
u = buildingowner(r, b);
|
||||||
if (u && !fval(u, FL_PARTEITARNUNG))
|
if (u && !fval(u, FL_PARTEITARNUNG)) {
|
||||||
fno = u->faction->no;
|
const faction * sf = visible_faction(f,u);
|
||||||
|
fno = sf->no;
|
||||||
|
}
|
||||||
cr_output_buildings(F, b, u, fno, f);
|
cr_output_buildings(F, b, u, fno, f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1250,8 +1251,10 @@ report_computer(FILE * F, faction * f, const seen_region * seen,
|
||||||
for (sh = r->ships; sh; sh = sh->next) {
|
for (sh = r->ships; sh; sh = sh->next) {
|
||||||
int fno = -1;
|
int fno = -1;
|
||||||
u = shipowner(r, sh);
|
u = shipowner(r, sh);
|
||||||
if (u && !fval(u, FL_PARTEITARNUNG))
|
if (u && !fval(u, FL_PARTEITARNUNG)) {
|
||||||
fno = u->faction->no;
|
const faction * sf = visible_faction(f,u);
|
||||||
|
fno = sf->no;
|
||||||
|
}
|
||||||
|
|
||||||
cr_output_ship(F, sh, u, fno, f, r);
|
cr_output_ship(F, sh, u, fno, f, r);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue