summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-07-13 20:30:43 +0000
committerJesusaves <cpntb1@ymail.com>2020-09-12 13:31:17 -0300
commit02963c54fa43b41ed8346e243c415e777e9caa4c (patch)
tree7ebe474c232fc3693e2bb2e6778418a44e91eec0 /src/emap/script_buildins.c
parent3eb00403ab423a415c3ed53dbc56f00bc9cb44b3 (diff)
downloadevol-hercules-02963c54fa43b41ed8346e243c415e777e9caa4c.tar.gz
evol-hercules-02963c54fa43b41ed8346e243c415e777e9caa4c.tar.bz2
evol-hercules-02963c54fa43b41ed8346e243c415e777e9caa4c.tar.xz
evol-hercules-02963c54fa43b41ed8346e243c415e777e9caa4c.zip
update the call syntax of some internal functions
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 28fc0e5..9fc1c90 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -1547,6 +1547,7 @@ BUILDIN(npcWalkTo)
if (nd->ud == NULL)
{
ShowWarning("buildin_npcwalkto: floating NPC don't have unit data.\n");
+ script_pushint(st, 0);
return false;
}
@@ -1559,7 +1560,7 @@ BUILDIN(npcWalkTo)
status_calc_npc(nd, SCO_NONE);
}
nd->vd.dead_sit = 0;
- script_pushint(st, unit->walktoxy(&nd->bl, x, y, 0));
+ script_pushint(st, unit->walk_toxy(&nd->bl, x, y, 0) ^ 1);
return true;
}
else
@@ -1598,14 +1599,14 @@ BUILDIN(chatJoin)
if (script_hasdata(st, 4))
{
if (script_isstringtype(st, 3))
- sd = map->nick2sd(script_getstr(st, 3));
+ sd = map->nick2sd(script_getstr(st, 3), false);
if (script_isstringtype(st, 4))
password = script_getstr(st, 4);
}
else if (script_hasdata(st, 3))
{
if (script_isstringtype(st, 3))
- sd = map->nick2sd(script_getstr(st, 3));
+ sd = map->nick2sd(script_getstr(st, 3), false);
}
else
{