forked from github/server
Sichtbarkeit aus Leuchttürmen korrigiert.
This commit is contained in:
parent
2b09e24654
commit
573404e390
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue