diff options
author | Haru <haru@dotalux.com> | 2017-10-21 00:23:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 00:23:56 +0200 |
commit | 122ae7b779bb0996f220b4cfb481d75b22420544 (patch) | |
tree | ac223afa4a8a10f49eb999e223ad444bb3fedd4b /src/map/unit.c | |
parent | 0b1a9d52a5cbf0338ce53eabc0cd446380c517ea (diff) | |
parent | 3f978c02ec2550714a60e6180ecb60e9e779b364 (diff) | |
download | hercules-122ae7b779bb0996f220b4cfb481d75b22420544.tar.gz hercules-122ae7b779bb0996f220b4cfb481d75b22420544.tar.bz2 hercules-122ae7b779bb0996f220b4cfb481d75b22420544.tar.xz hercules-122ae7b779bb0996f220b4cfb481d75b22420544.zip |
Merge pull request #1827 from HerculesWS/cell-stack-hiddennpc
Ignore hidden units in the cell stack limit checks
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
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 |