From 3f978c02ec2550714a60e6180ecb60e9e779b364 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 15 May 2017 01:17:03 +0200 Subject: 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 --- src/map/map.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index f8aebcfa6..ff5c2aafd 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -447,6 +447,11 @@ int map_count_oncell(int16 m, int16 x, int16 y, int type, int flag) { struct status_change *sc = status->get_sc(bl); if (sc && (sc->option&OPTION_INVISIBLE)) continue; + if (bl->type == BL_NPC) { + const struct npc_data *nd = BL_UCCAST(BL_NPC, bl); + if (nd->class_ == FAKE_NPC || nd->class_ == HIDDEN_WARP_CLASS) + continue; + } } if (flag&0x1) { struct unit_data *ud = unit->bl2ud(bl); -- cgit v1.2.3-70-g09d2