Nachbesserung zum vorangegangenen commit.
This commit is contained in:
Enno Rehling 2005-05-28 09:14:01 +00:00
parent 7748f4612d
commit d042e89542

View file

@ -2674,14 +2674,12 @@ prepare_report(faction * f)
while (rp) { while (rp) {
region * rl = rp->data; region * rl = rp->data;
if (rterrain(rl) == T_OCEAN) { if (rterrain(rl) == T_OCEAN) {
direction_t d;
add_seen(seen, rl, see_lighthouse, false); add_seen(seen, rl, see_lighthouse, false);
if (distance(rl, r)==light) { for (d=0;d!=MAXDIRECTIONS;++d) {
direction_t d; region * rn = rconnect(rl, d);
for (d=0;d!=MAXDIRECTIONS;++d) { if (rn!=NULL) {
region * rn = rconnect(rl, d); add_seen(seen, rn, see_neighbour, false);
if (rn!=NULL) {
add_seen(seen, rn, see_neighbour, false);
}
} }
} }
} }