Sichtbarkeit aus Leuchttürmen korrigiert.
This commit is contained in:
Enno Rehling 2020-09-11 18:15:41 +02:00
parent 2b09e24654
commit 573404e390
1 changed files with 4 additions and 3 deletions

View File

@ -2371,11 +2371,12 @@ bool visible_unit(const unit *u, const faction *f, int stealthmod, seen_mode mod
} }
else { else {
if (stealthmod > INT_MIN) { if (stealthmod > INT_MIN) {
if (mode == seen_lighthouse) { if (mode > seen_travel || u->building || u->ship || is_guard(u)) {
return u_race(u)->weight >= 5000;
} else if (mode > seen_travel || u->building || u->ship || is_guard(u)) {
return cansee(f, u->region, u, stealthmod); return cansee(f, u->region, u, stealthmod);
} }
else {
return u_race(u)->weight >= 5000;
}
} }
} }
return false; return false;