forked from github/server
BUG 2309: show true faction to allies.
https://bugs.eressea.de/view.php?id=2309
This commit is contained in:
parent
77abd703bd
commit
f54165d4f1
2 changed files with 5 additions and 1 deletions
|
@ -536,6 +536,10 @@ size_t size)
|
|||
if (wrptr(&bufp, &size, result) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
}
|
||||
else {
|
||||
bufp = STRLCPY(bufp, ", ", size);
|
||||
bufp = STRLCPY(bufp, factionname(fv), size);
|
||||
}
|
||||
}
|
||||
else {
|
||||
bufp = STRLCPY(bufp, ", ", size);
|
||||
|
|
|
@ -231,7 +231,7 @@ static void test_bufunit_fstealth(CuTest *tc) {
|
|||
/* fstealth has no influence when we are allies, same results again */
|
||||
set_factionstealth(u, NULL);
|
||||
bufunit(f2, u, 0, seen_unit, buf, sizeof(buf));
|
||||
CuAssertStrEquals(tc, "Hodor (1), UFO(1), 1 human.", buf);
|
||||
CuAssertStrEquals(tc, "Hodor (1), UFO (1), 1 human.", buf);
|
||||
|
||||
u->flags |= UFL_ANON_FACTION;
|
||||
bufunit(f2, u, 0, seen_unit, buf, sizeof(buf));
|
||||
|
|
Loading…
Reference in a new issue