diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-11-07 19:18:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-11-07 19:18:06 +0300 |
commit | 51e1c8fd61d0e8270c7502095c73cf58f8beac62 (patch) | |
tree | 5dd4ea8d0f7360660552fe42e49bfe3488fd0233 /src/emap/script_buildins.c | |
parent | 1e553c3f7a8d444983ee25c0cefbcb4e00a54305 (diff) | |
download | evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.gz evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.bz2 evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.tar.xz evol-hercules-51e1c8fd61d0e8270c7502095c73cf58f8beac62.zip |
Update from new hercules.s20171129
Removed npc vd recreation because it already fixed in hercules.
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 4c32a9a..b5cd601 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -813,7 +813,7 @@ BUILDIN(setNpcSex) sex = script_getnum(st, 3); } - if (!nd || !nd->vd) + if (!nd) { ShowWarning("npc not found\n"); script->reportsrc(st); @@ -821,7 +821,7 @@ BUILDIN(setNpcSex) } clif->clearunit_area(&nd->bl, CLR_OUTSIGHT); - nd->vd->sex = sex; + nd->vd.sex = sex; clif->spawn(&nd->bl); return true; } @@ -1386,7 +1386,7 @@ BUILDIN(npcSit) script->reportsrc(st); return false; } - nd->vd->dead_sit = 2; + nd->vd.dead_sit = 2; clif->sitting(&nd->bl); return true; } @@ -1416,7 +1416,7 @@ BUILDIN(npcStand) script->reportsrc(st); return false; } - nd->vd->dead_sit = 0; + nd->vd.dead_sit = 0; clif->standing(&nd->bl); return true; } @@ -1440,7 +1440,7 @@ BUILDIN(npcWalkTo) { status_calc_npc(nd, SCO_NONE); } - nd->vd->dead_sit = 0; + nd->vd.dead_sit = 0; script_pushint(st, unit->walktoxy(&nd->bl,x,y,0)); return true; } |