new army-abbreviations

This commit is contained in:
Enno Rehling 2009-08-30 21:05:29 +00:00
parent e35ae5d135
commit c5473fc657

View file

@ -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;
} }