forked from github/server
Reduce weight limit, lighthouses also show all dragons.
This commit is contained in:
parent
19a2a69f33
commit
6c2f6a98eb
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue