diff options
author | Fate <fate-tmw@googlemail.com> | 2008-11-29 13:56:08 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-11-29 13:56:08 -0700 |
commit | 7eb238fac9043bc9e850b5e881caa59d99f8c97a (patch) | |
tree | 389cb8b95345a6d28122d37fddcf780b824ef495 /src/map/magic-stmt.c | |
parent | c41894ef2fd51dcc17e030536272fbf03f17f1a8 (diff) | |
download | tmwa-7eb238fac9043bc9e850b5e881caa59d99f8c97a.tar.gz tmwa-7eb238fac9043bc9e850b5e881caa59d99f8c97a.tar.bz2 tmwa-7eb238fac9043bc9e850b5e881caa59d99f8c97a.tar.xz tmwa-7eb238fac9043bc9e850b5e881caa59d99f8c97a.zip |
SLang: Added `sqrt' function, permit looping over NPCs
Diffstat (limited to 'src/map/magic-stmt.c')
-rw-r--r-- | src/map/magic-stmt.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c index c9984af..153d380 100644 --- a/src/map/magic-stmt.c +++ b/src/map/magic-stmt.c @@ -984,6 +984,12 @@ find_entities_in_area_c(entity_t *target, va_list va) } else return 0; + case BL_NPC: + if (filter == FOREACH_FILTER_NPC) + break; + else + return 0; + default: return 0; } |