summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-28 00:10:51 +0100
committerJesusaves <cpntb1@ymail.com>2021-02-14 16:28:51 -0300
commit37668b5bd06574566be2a4c48bd4c65f98c1563d (patch)
treef39e6e668983dc1077be6d80ba10a5bfcb7d6830 /src/map
parent562e8f2822060bdfc9802dd1f45285515ca71b12 (diff)
downloadhercules-37668b5bd06574566be2a4c48bd4c65f98c1563d.tar.gz
hercules-37668b5bd06574566be2a4c48bd4c65f98c1563d.tar.bz2
hercules-37668b5bd06574566be2a4c48bd4c65f98c1563d.tar.xz
hercules-37668b5bd06574566be2a4c48bd4c65f98c1563d.zip
Add return values to setpcblock() script command
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4756fa73b..e4c7e54af 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -18960,8 +18960,10 @@ static BUILDIN(setpcblock)
enum pcblock_action_flag type = script_getnum(st, 2);
int state = (script_getnum(st, 3) > 0) ? 1 : 0;
- if (sd == NULL)
+ if (sd == NULL) {
+ script_pushint(st, 0);
return true;
+ }
if ((type & PCBLOCK_MOVE) != 0)
sd->block_action.move = state;
@@ -18987,6 +18989,7 @@ static BUILDIN(setpcblock)
if ((type & PCBLOCK_COMMANDS) != 0)
sd->block_action.commands = state;
+ script_pushint(st, 1);
return true;
}