diff --git a/src/common/kernel/eressea.c b/src/common/kernel/eressea.c index af7381eab..1592e195d 100644 --- a/src/common/kernel/eressea.c +++ b/src/common/kernel/eressea.c @@ -849,29 +849,14 @@ effskill(const unit * u, skill_t sk) } int -effstealth(const unit * u) -{ - 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; -} - -int -eff_stealth (const unit * u, const region * r) +eff_stealth(const unit * u, const region * r) { int e; - if (r->terrain == T_OCEAN) return 0; - e = eff_skill (u, SK_STEALTH, r); + /* Auf Schiffen keine Tarnung! */ + if (u->ship) return 0; + + e = eff_skill (u, SK_STEALTH, r); if (fval(u, UFL_STEALTH)) { int es = u_geteffstealth(u); diff --git a/src/common/kernel/eressea.h b/src/common/kernel/eressea.h index 9e3c2ed29..3a3a2208f 100644 --- a/src/common/kernel/eressea.h +++ b/src/common/kernel/eressea.h @@ -1018,7 +1018,6 @@ extern int count_maxmigrants(const struct faction * f); extern boolean teure_talente(const struct unit * u); extern const struct race * findrace(const char *, const struct locale *); -int effstealth(const struct unit * u); int eff_stealth(const struct unit * u, const struct region * r); void scale_number(struct unit * u, int n); int unit_max_hp(const struct unit * u);