forked from github/server
helfe parteitarnung auch im CR anzeigen.
This commit is contained in:
parent
b5a119c47b
commit
2f5ab2a31f
|
@ -621,11 +621,16 @@ cr_output_unit(FILE * F, const region * r,
|
|||
/* faction info is hidden */
|
||||
fprintf(F, "%d;Parteitarnung\n", i2b(fval(u, FL_PARTEITARNUNG)));
|
||||
} else {
|
||||
const attrib *a_otherfaction = a_find(u->attribs, &at_otherfaction);
|
||||
const faction * otherfaction = a_otherfaction?get_otherfaction(a_otherfaction):NULL;
|
||||
/* other unit. show visible faction, not u->faction */
|
||||
fprintf(F, "%d;Partei\n", sf->no);
|
||||
if (sf == f) {
|
||||
fprintf(F, "1;Verraeter\n");
|
||||
}
|
||||
if (a_otherfaction && alliedunit(u, f, HELP_FSTEALTH)) {
|
||||
fprintf(F, "%d;Anderepartei\n", otherfaction->no);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (atyp) {
|
||||
|
|
|
@ -795,7 +795,6 @@ rpunit(FILE * F, const faction * f, const unit * u, int indent, int mode)
|
|||
char marker;
|
||||
strlist *S;
|
||||
int dh;
|
||||
faction *fv;
|
||||
boolean isbattle = (boolean)(mode == see_battle);
|
||||
#ifdef USE_UGROUPS
|
||||
ugroup *ug = findugroup(u);
|
||||
|
@ -818,7 +817,6 @@ rpunit(FILE * F, const faction * f, const unit * u, int indent, int mode)
|
|||
}
|
||||
|
||||
a_otherfaction = a_find(u->attribs, &at_otherfaction);
|
||||
fv = visible_faction(f,u);
|
||||
|
||||
if(u->faction == f) {
|
||||
marker = '*';
|
||||
|
|
Loading…
Reference in New Issue