forked from github/server
fixing log output (umlauts)
fixing battledebug
This commit is contained in:
parent
182f248061
commit
adab7ea8f6
3 changed files with 8 additions and 6 deletions
|
@ -158,16 +158,18 @@ static char *
|
||||||
sidename(side * s)
|
sidename(side * s)
|
||||||
{
|
{
|
||||||
#define SIDENAMEBUFLEN 256
|
#define SIDENAMEBUFLEN 256
|
||||||
static char sidename_buf[SIDENAMEBUFLEN];
|
static int bufno;
|
||||||
|
static char sidename_buf[4][SIDENAMEBUFLEN];
|
||||||
|
|
||||||
|
bufno = bufno % 4;
|
||||||
if (s->stealthfaction) {
|
if (s->stealthfaction) {
|
||||||
snprintf(sidename_buf, SIDENAMEBUFLEN,
|
snprintf(sidename_buf[bufno], SIDENAMEBUFLEN,
|
||||||
"%s", factionname(s->stealthfaction));
|
"%s", factionname(s->stealthfaction));
|
||||||
} else {
|
} else {
|
||||||
snprintf(sidename_buf, SIDENAMEBUFLEN,
|
snprintf(sidename_buf[bufno], SIDENAMEBUFLEN,
|
||||||
"%s", factionname(s->faction));
|
"%s", factionname(s->faction));
|
||||||
}
|
}
|
||||||
return sidename_buf;
|
return sidename_buf[bufno++];
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
|
|
|
@ -1250,7 +1250,7 @@ count_all(const faction * f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (f->num_people != n) {
|
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));
|
factionid(f), f->num_people, n));
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
|
@ -517,7 +517,7 @@ factionorders(void)
|
||||||
|
|
||||||
f = findfaction(fid);
|
f = findfaction(fid);
|
||||||
|
|
||||||
if (f!=NULL) {
|
if (f!=NULL && f->no!=MONSTER_FACTION) {
|
||||||
const char * pass = getstrtoken();
|
const char * pass = getstrtoken();
|
||||||
if (quiet==0) {
|
if (quiet==0) {
|
||||||
log_stdio(stdout, " %4s;", factionid(f));
|
log_stdio(stdout, " %4s;", factionid(f));
|
||||||
|
|
Loading…
Reference in a new issue