From 573404e390df6887a689d3393933e08d2790cab9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 11 Sep 2020 18:15:41 +0200 Subject: [PATCH] https://bugs.eressea.de/view.php?id=2699 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sichtbarkeit aus Leuchttürmen korrigiert. --- src/reports.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/reports.c b/src/reports.c index 78cb4a562..a513552ef 100644 --- a/src/reports.c +++ b/src/reports.c @@ -2371,11 +2371,12 @@ bool visible_unit(const unit *u, const faction *f, int stealthmod, seen_mode mod } else { if (stealthmod > INT_MIN) { - if (mode == seen_lighthouse) { - return u_race(u)->weight >= 5000; - } else if (mode > seen_travel || u->building || u->ship || is_guard(u)) { + if (mode > seen_travel || u->building || u->ship || is_guard(u)) { return cansee(f, u->region, u, stealthmod); } + else { + return u_race(u)->weight >= 5000; + } } } return false;