summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-11-13 15:05:05 +0100
committerGitHub <noreply@github.com>2018-11-13 15:05:05 +0100
commitbb2858fda55ca4ca3144232da9b837d9551aafc0 (patch)
tree05f4f3908f6246b902e6d4a13894f20ac2990cf8 /src/map/map.h
parent26efcebad2f3d316013cc1458925cd0ca70cb347 (diff)
parentf3af2d37a90a83bbec25c15e59c29e0f9802daca (diff)
downloadhercules-bb2858fda55ca4ca3144232da9b837d9551aafc0.tar.gz
hercules-bb2858fda55ca4ca3144232da9b837d9551aafc0.tar.bz2
hercules-bb2858fda55ca4ca3144232da9b837d9551aafc0.tar.xz
hercules-bb2858fda55ca4ca3144232da9b837d9551aafc0.zip
Merge pull request #2105 from Helianthella/getunits3
break the loop in buildin_getunits when the max is reached
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index cb025e9c1..0e38bdb13 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -1293,6 +1293,7 @@ END_ZEROED_BLOCK;
int (*foreachinpath) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, ...);
int (*vforeachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, va_list args);
int (*foreachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, ...);
+ int (*forcountinmap) (int (*func)(struct block_list*,va_list), int16 m, int count, int type, ...);
int (*vforeachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type, va_list ap);
int (*foreachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type,...);