summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-05-15 01:17:03 +0200
committerHaru <haru@dotalux.com>2017-08-20 15:41:11 +0200
commit3f978c02ec2550714a60e6180ecb60e9e779b364 (patch)
tree74b971aab635ffb2280a429d0a1b6bca820c81b0 /src/map/unit.c
parent2357990ccea2f622992bc1d424eda30cd77ef082 (diff)
downloadhercules-3f978c02ec2550714a60e6180ecb60e9e779b364.tar.gz
hercules-3f978c02ec2550714a60e6180ecb60e9e779b364.tar.bz2
hercules-3f978c02ec2550714a60e6180ecb60e9e779b364.tar.xz
hercules-3f978c02ec2550714a60e6180ecb60e9e779b364.zip
Ignore hidden units in the cell stack limit checks
- This improves the Dancer Quest experience as well as other cases of hidden NPCs blocking off certain cells - Fixes #1135 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 00c78054b..0b5b21caf 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -474,7 +474,7 @@ int unit_walktoxy_timer(int tid, int64 tick, int id, intptr_t data)
ud->to_x = bl->x;
ud->to_y = bl->y;
- if(battle_config.official_cell_stack_limit && map->count_oncell(bl->m, x, y, BL_CHAR|BL_NPC, 1) > battle_config.official_cell_stack_limit) {
+ if (battle_config.official_cell_stack_limit && map->count_oncell(bl->m, x, y, BL_CHAR|BL_NPC, 0x1 | 0x2) > battle_config.official_cell_stack_limit) {
//Walked on occupied cell, call unit_walktoxy again
if(ud->steptimer != INVALID_TIMER) {
//Execute step timer on next step instead