forked from github/server
spotting monsters from lighthouses
This commit is contained in:
parent
68e2a6e892
commit
beb673a28b
|
@ -2369,8 +2369,10 @@ bool visible_unit(const unit *u, const faction *f, int stealthmod, seen_mode mod
|
|||
return true;
|
||||
}
|
||||
else {
|
||||
if (stealthmod > INT_MIN && mode >= seen_lighthouse) {
|
||||
if (mode != seen_travel || u->building || u->ship || is_guard(u)) {
|
||||
if (stealthmod > INT_MIN) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue