spotting monsters from lighthouses

This commit is contained in:
Enno Rehling 2020-08-04 19:00:04 +02:00
parent 68e2a6e892
commit beb673a28b
1 changed files with 4 additions and 2 deletions

View File

@ -2369,8 +2369,10 @@ bool visible_unit(const unit *u, const faction *f, int stealthmod, seen_mode mod
return true; return true;
} }
else { else {
if (stealthmod > INT_MIN && mode >= seen_lighthouse) { if (stealthmod > INT_MIN) {
if (mode != seen_travel || u->building || u->ship || is_guard(u)) { if (mode == seen_lighthouse) {
return true;
} 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);
} }
} }