summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-22 14:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-22 14:07:09 +0300
commitbf557fd270144c92f05f3e88e4d25dc9495d46d8 (patch)
tree460cc8ff1f4fb4e69bb0d0066752186607243cce
parent88d6058674db089432f9034baa08a30253d4dc73 (diff)
downloadevol-hercules-bf557fd270144c92f05f3e88e4d25dc9495d46d8.tar.gz
evol-hercules-bf557fd270144c92f05f3e88e4d25dc9495d46d8.tar.bz2
evol-hercules-bf557fd270144c92f05f3e88e4d25dc9495d46d8.tar.xz
evol-hercules-bf557fd270144c92f05f3e88e4d25dc9495d46d8.zip
map: remove sit state after start moving.
-rw-r--r--src/map/unit.c5
1 files changed, 5 insertions, 0 deletions
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;
}