seltsame konstrukte in der 2. welt mit strassen drin fuehren zu irrsinnigem crash, der 2 stunden debugging gebraucht hat

This commit is contained in:
Enno Rehling 2002-05-26 20:25:07 +00:00
parent 5c9e21f039
commit a785e7c004
1 changed files with 2 additions and 2 deletions

View File

@ -444,9 +444,9 @@ b_nameroad(const border * b, const region * r, const struct faction * f, int gfl
unused(f);
if (gflags & GF_ARTICLE) {
if (!(gflags & GF_DETAILED)) strcpy(buffer, "eine Straße");
else if (terrain[rterrain(r)].roadreq==local) {
else if (terrain[rterrain(r)].roadreq>=local) {
int remote = (r!=b->to)?(rval & 0xFFFF):((rval>>16) & 0xFFFF);
if (terrain[rterrain(r2)].roadreq==remote) {
if (terrain[rterrain(r2)].roadreq>=remote) {
strcpy(buffer, "eine Straße");
} else {
strcpy(buffer, "eine unvollständige Straße");