From bf557fd270144c92f05f3e88e4d25dc9495d46d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Mar 2015 14:07:09 +0300 Subject: map: remove sit state after start moving. --- src/map/unit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map') diff --git a/src/map/unit.c b/src/map/unit.c index 8153a4b..97860e1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -154,5 +154,10 @@ int eunit_walktoxy(struct block_list *bl __attribute__ ((unused)), // this reduce CPU usage and allow mobs to walk on each other. if ((*flagPtr)&8) *flagPtr = ((*flagPtr) | 8) ^ 8; + + TBL_PC *sd = BL_CAST(BL_PC, bl); + if (sd && pc_issit(sd)) + pc->setstand(sd); + return 1; } -- cgit v1.2.3-60-g2f50