diff options
author | gumi <git@gumi.ca> | 2020-07-13 20:30:43 +0000 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-07-13 20:31:50 +0000 |
commit | 7840b10caf239eaf9e0b10971457581fa30a6ec2 (patch) | |
tree | 8d7bbb001f5b3c02590f31f21797896699eb1a64 /src/emap/script_buildins.c | |
parent | 48200a8f6fb8f9e683ce7eff9d8852c482c5a8f6 (diff) | |
download | evol-hercules-7840b10caf239eaf9e0b10971457581fa30a6ec2.tar.gz evol-hercules-7840b10caf239eaf9e0b10971457581fa30a6ec2.tar.bz2 evol-hercules-7840b10caf239eaf9e0b10971457581fa30a6ec2.tar.xz evol-hercules-7840b10caf239eaf9e0b10971457581fa30a6ec2.zip |
update the call syntax of some internal functions
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 3b917f6..3e1a15a 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -1473,6 +1473,7 @@ BUILDIN(npcWalkTo) if (nd->ud == NULL) { ShowWarning("buildin_npcwalkto: floating NPC don't have unit data.\n"); + script_pushint(st, 0); return false; } @@ -1485,7 +1486,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 @@ -1524,14 +1525,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 { |