forked from github/server
Auf Schiffen keine Tarnung, auf Ozeanen dafuer schon.
This commit is contained in:
parent
ff9e124ce3
commit
26f60e18c5
|
@ -851,18 +851,18 @@ effskill(const unit * u, skill_t sk)
|
||||||
int
|
int
|
||||||
effstealth(const unit * u)
|
effstealth(const unit * u)
|
||||||
{
|
{
|
||||||
int e;
|
int e;
|
||||||
|
|
||||||
/* Auf dem Ozean keine Tarnung! */
|
/* Auf Schiffen keine Tarnung! */
|
||||||
if (u->region->terrain == T_OCEAN) return 0;
|
if (u->ship) return 0;
|
||||||
|
|
||||||
e = effskill(u, SK_STEALTH);
|
e = effskill(u, SK_STEALTH);
|
||||||
|
|
||||||
if (fval(u, UFL_STEALTH)) {
|
if (fval(u, UFL_STEALTH)) {
|
||||||
int es = u_geteffstealth(u);
|
int es = u_geteffstealth(u);
|
||||||
if (es >=0 && es < e) return es;
|
if (es >=0 && es < e) return es;
|
||||||
}
|
}
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue