summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-07 19:18:06 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-07 19:18:06 +0300
commit51e1c8fd61d0e8270c7502095c73cf58f8beac62 (patch)
tree5dd4ea8d0f7360660552fe42e49bfe3488fd0233 /src/emap/script.c
parent1e553c3f7a8d444983ee25c0cefbcb4e00a54305 (diff)
downloadevol-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.c')
-rw-r--r--src/emap/script.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 5b39e8a..4bc427b 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -145,7 +145,7 @@ void eset_reg_npcscope_num_pre(struct script_state **stPtr,
{
getExt1();
clif->clearunit_area(&nd->bl, CLR_OUTSIGHT);
- nd->vd->sex = *val;
+ nd->vd.sex = *val;
clif->spawn(&nd->bl);
hookStop();
}
@@ -206,14 +206,14 @@ void eset_reg_npcscope_num_pre(struct script_state **stPtr,
else if (!strcmp(name, ".sit"))
{
getExt1();
- nd->vd->dead_sit = (*val) ? 2 : 0;
+ nd->vd.dead_sit = (*val) ? 2 : 0;
clif->sitting(&nd->bl);
hookStop();
}
else if (!strcmp(name, ".stand"))
{
getExt1();
- nd->vd->dead_sit = (*val) ? 0 : 2;
+ nd->vd.dead_sit = (*val) ? 0 : 2;
clif->sitting(&nd->bl);
hookStop();
}
@@ -258,7 +258,7 @@ int eget_val_npcscope_num_pre(struct script_state **stPtr,
{
getExt1Return(0);
hookStop();
- return nd->vd->sex;
+ return nd->vd.sex;
}
else if (!strcmp(name, ".distance"))
{
@@ -306,13 +306,13 @@ int eget_val_npcscope_num_pre(struct script_state **stPtr,
{
getExt1Return(0);
hookStop();
- return nd->vd->dead_sit == 2 ? 1 : 0;
+ return nd->vd.dead_sit == 2 ? 1 : 0;
}
else if (!strcmp(name, ".stand"))
{
getExt1Return(0);
hookStop();
- return nd->vd->dead_sit == 0 ? 1 : 0;
+ return nd->vd.dead_sit == 0 ? 1 : 0;
}
else if (!strcmp(name, ".walkmask"))
{