summaryrefslogtreecommitdiff
path: root/src/map/magic-stmt.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-11-29 13:56:08 -0700
committerFate <fate-tmw@googlemail.com>2008-11-29 13:56:08 -0700
commit7eb238fac9043bc9e850b5e881caa59d99f8c97a (patch)
tree389cb8b95345a6d28122d37fddcf780b824ef495 /src/map/magic-stmt.c
parentc41894ef2fd51dcc17e030536272fbf03f17f1a8 (diff)
downloadtmwa-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.c6
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;
}