From 858074501e9eea34089896cb53526cdfdfdf8dce Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 26 Sep 2016 20:30:52 +0200 Subject: [PATCH] additional comments --- src/laws.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/laws.c b/src/laws.c index 5b4c5971b..2554d0e23 100644 --- a/src/laws.c +++ b/src/laws.c @@ -4285,12 +4285,18 @@ void update_subscriptions(void) fclose(F); } -bool -cansee(const faction * f, const region * r, const unit * u, int modifier) -/* r kann != u->region sein, wenn es um Durchreisen geht, +/** determine if unit can be seen by faction + * @param f -- the observiong faction + * @param u -- the unit that is observed + * @param r -- the region that u is obesrved in (see below) + * @param m -- terrain modifier to stealth + * + * r kann != u->region sein, wenn es um Durchreisen geht, * oder Zauber (sp_generous, sp_fetchastral). * Es muss auch niemand aus f in der region sein, wenn sie vom Turm * erblickt wird */ +bool +cansee(const faction * f, const region * r, const unit * u, int modifier) { int stealth, rings; unit *u2 = r->units;