fixing log output (umlauts)

fixing battledebug
This commit is contained in:
Enno Rehling 2008-01-22 03:47:32 +00:00
parent 182f248061
commit adab7ea8f6
3 changed files with 8 additions and 6 deletions

View file

@ -158,16 +158,18 @@ static char *
sidename(side * s)
{
#define SIDENAMEBUFLEN 256
static char sidename_buf[SIDENAMEBUFLEN];
static int bufno;
static char sidename_buf[4][SIDENAMEBUFLEN];
bufno = bufno % 4;
if (s->stealthfaction) {
snprintf(sidename_buf, SIDENAMEBUFLEN,
snprintf(sidename_buf[bufno], SIDENAMEBUFLEN,
"%s", factionname(s->stealthfaction));
} else {
snprintf(sidename_buf, SIDENAMEBUFLEN,
snprintf(sidename_buf[bufno], SIDENAMEBUFLEN,
"%s", factionname(s->faction));
}
return sidename_buf;
return sidename_buf[bufno++];
}
static const char *

View file

@ -1250,7 +1250,7 @@ count_all(const faction * f)
}
}
if (f->num_people != n) {
log_error(("Anzahl Personen für (%s) ist != num_people: %d statt %d.\n",
log_error(("# of people in %s is != num_people: %d should be %d.\n",
factionid(f), f->num_people, n));
return n;
}

View file

@ -517,7 +517,7 @@ factionorders(void)
f = findfaction(fid);
if (f!=NULL) {
if (f!=NULL && f->no!=MONSTER_FACTION) {
const char * pass = getstrtoken();
if (quiet==0) {
log_stdio(stdout, " %4s;", factionid(f));