kleiner (sigsegv-)bugfix zu corwins neuer plane-ausgabe

This commit is contained in:
Enno Rehling 2001-02-12 23:44:30 +00:00
parent 82c354ac01
commit 3ffa9328ea
1 changed files with 5 additions and 7 deletions

View File

@ -1,6 +1,6 @@
/* vi: set ts=2: /* vi: set ts=2:
* *
* $Id: report.c,v 1.15 2001/02/11 19:56:49 corwin Exp $ * $Id: report.c,v 1.16 2001/02/12 23:44:30 enno Exp $
* Eressea PB(E)M host Copyright (C) 1998-2000 * Eressea PB(E)M host Copyright (C) 1998-2000
* Christian Schlittchen (corwin@amber.kn-bremen.de) * Christian Schlittchen (corwin@amber.kn-bremen.de)
* Katja Zedel (katze@felidae.kn-bremen.de) * Katja Zedel (katze@felidae.kn-bremen.de)
@ -1319,15 +1319,13 @@ order_template(FILE * F, faction * f)
pl = getplane(r); pl = getplane(r);
if (pl && fval(pl, PFL_NOCOORDS)) { if (pl && fval(pl, PFL_NOCOORDS)) {
sprintf(buf, "REGION; %s", rname(r, f->locale)); sprintf(buf, "REGION; %s", rname(r, f->locale));
} else { } else if (pl && pl->id != 0) {
if(pl->id != 0) {
sprintf(buf, "REGION %d,%d,%d ; %s", region_x(r,f), sprintf(buf, "REGION %d,%d,%d ; %s", region_x(r,f),
region_y(r,f), pl->id, rname(r, f->locale)); region_y(r,f), pl->id, rname(r, f->locale));
} else { } else {
sprintf(buf, "REGION %d,%d ; %s", region_x(r,f), sprintf(buf, "REGION %d,%d ; %s", region_x(r,f),
region_y(r,f), rname(r, f->locale)); region_y(r,f), rname(r, f->locale));
} }
}
rps_nowrap(F, buf); rps_nowrap(F, buf);
rnl(F); rnl(F);
sprintf(buf,"; ECheck Lohn %d", fwage(r,f,true)); sprintf(buf,"; ECheck Lohn %d", fwage(r,f,true));