From 6c2f6a98eb59e6e442ba7209e6030525771b349d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 5 Aug 2020 16:33:00 +0200 Subject: [PATCH] Reduce weight limit, lighthouses also show all dragons. --- src/reports.c | 2 +- src/reports.test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reports.c b/src/reports.c index 547351824..55ecdafdd 100644 --- a/src/reports.c +++ b/src/reports.c @@ -2371,7 +2371,7 @@ 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 > 10000; + 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); } diff --git a/src/reports.test.c b/src/reports.test.c index 50dc08704..bcf644ebc 100644 --- a/src/reports.test.c +++ b/src/reports.test.c @@ -871,7 +871,7 @@ static void test_visible_unit(CuTest *tc) { CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land)); CuAssertTrue(tc, !visible_unit(u, f, -2, seen_lighthouse)); - rc->weight = 11000; + rc->weight = 5000; CuAssertTrue(tc, visible_unit(u, f, -2, seen_lighthouse)); u->ship = sh = test_create_ship(u->region, NULL);