forked from github/server
Im CR fehlen die Nachbarregionen (Typ und Name) von gesehenen Leuchtturmregionen
This commit is contained in:
parent
23c86d49bc
commit
7748f4612d
1 changed files with 12 additions and 3 deletions
|
@ -2672,9 +2672,18 @@ prepare_report(faction * f)
|
||||||
region_list * rlist = get_regions_distance(r, light);
|
region_list * rlist = get_regions_distance(r, light);
|
||||||
region_list * rp = rlist;
|
region_list * rp = rlist;
|
||||||
while (rp) {
|
while (rp) {
|
||||||
region * r = rp->data;
|
region * rl = rp->data;
|
||||||
if (rterrain(r) == T_OCEAN) {
|
if (rterrain(rl) == T_OCEAN) {
|
||||||
add_seen(seen, r, see_lighthouse, false);
|
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;
|
rp = rp->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue