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
|
||||
effstealth(const unit * u)
|
||||
{
|
||||
int e;
|
||||
|
||||
/* Auf dem Ozean keine Tarnung! */
|
||||
if (u->region->terrain == T_OCEAN) return 0;
|
||||
|
||||
e = effskill(u, SK_STEALTH);
|
||||
int e;
|
||||
|
||||
/* Auf Schiffen keine Tarnung! */
|
||||
if (u->ship) return 0;
|
||||
|
||||
e = effskill(u, SK_STEALTH);
|
||||
|
||||
if (fval(u, UFL_STEALTH)) {
|
||||
int es = u_geteffstealth(u);
|
||||
if (es >=0 && es < e) return es;
|
||||
}
|
||||
return e;
|
||||
return e;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue