Im CR fehlen die Nachbarregionen (Typ und Name) von gesehenen Leuchtturmregionen
This commit is contained in:
Enno Rehling 2005-05-28 09:11:58 +00:00
parent 23c86d49bc
commit 7748f4612d
1 changed files with 12 additions and 3 deletions

View File

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