forked from github/server
new army-abbreviations
This commit is contained in:
parent
e35ae5d135
commit
c5473fc657
1 changed files with 7 additions and 5 deletions
|
@ -223,12 +223,14 @@ static const char *
|
||||||
sideabkz(side *s, boolean truename)
|
sideabkz(side *s, boolean truename)
|
||||||
{
|
{
|
||||||
static char sideabkz_buf[8]; /* STATIC_RESULT: used for return, not across calls */
|
static char sideabkz_buf[8]; /* STATIC_RESULT: used for return, not across calls */
|
||||||
|
faction * f = (s->stealthfaction && !truename)?s->stealthfaction:s->faction;
|
||||||
|
|
||||||
if (s->stealthfaction && truename == false) {
|
#undef SIDE_ABKZ
|
||||||
abkz(s->stealthfaction->name, sideabkz_buf, sizeof(sideabkz_buf), 3);
|
#ifdef SIDE_ABKZ
|
||||||
} else {
|
abkz(f->name, sideabkz_buf, sizeof(sideabkz_buf), 3);
|
||||||
abkz(s->faction->name, sideabkz_buf, sizeof(sideabkz_buf), 3);
|
#else
|
||||||
}
|
strcpy(sideabkz_buf, itoa36(f->no));
|
||||||
|
#endif
|
||||||
return sideabkz_buf;
|
return sideabkz_buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue