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 {
|
else {
|
||||||
if (stealthmod > INT_MIN) {
|
if (stealthmod > INT_MIN) {
|
||||||
if (mode == seen_lighthouse) {
|
if (mode > seen_travel || u->building || u->ship || is_guard(u)) {
|
||||||
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);
|
return cansee(f, u->region, u, stealthmod);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
return u_race(u)->weight >= 5000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue