* regatta-sichtweite gilt nur auf see.

* bei doppelter sichtweite kann man nicht durch unpassierbares terrain gucken.
This commit is contained in:
Enno Rehling 2002-03-29 08:57:06 +00:00
parent a89618df87
commit 3420f58f6d
1 changed files with 12 additions and 10 deletions

View File

@ -2615,6 +2615,7 @@ view_neighbours(region * r, faction * f)
}
if (!b) {
if (add_seen(r2, see_far, false)) {
if (!(terrain[rterrain(r2)].flags & FORBIDDEN_LAND)) {
direction_t dir;
for (dir=0;dir!=MAXDIRECTIONS;++dir) {
region * r3 = rconnect(r2, dir);
@ -2631,6 +2632,7 @@ view_neighbours(region * r, faction * f)
}
}
}
}
}
static void
@ -2643,7 +2645,7 @@ recurse_regatta(region *center, region *r, faction *f, int maxdist)
region * r2 = rconnect(r, dir);
if (r2) {
int ndist = distance(center, r2);
if (ndist>dist) {
if (ndist>dist && r2->terrain==T_OCEAN) {
border * b = get_borders(r, r2);
while (b) {
if (!b->type->transparent(b, f)) break;