diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-28 00:10:51 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-28 00:10:51 +0100 |
commit | 03a2937f7714aa7a4e3f13f8170f6a66e403a077 (patch) | |
tree | 1ecd74f59016409b2aa938ac0916627a97117c7d | |
parent | c9a5b5756469661c26e469390980472aac072510 (diff) | |
download | hercules-03a2937f7714aa7a4e3f13f8170f6a66e403a077.tar.gz hercules-03a2937f7714aa7a4e3f13f8170f6a66e403a077.tar.bz2 hercules-03a2937f7714aa7a4e3f13f8170f6a66e403a077.tar.xz hercules-03a2937f7714aa7a4e3f13f8170f6a66e403a077.zip |
Add return values to setpcblock() script command
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 45c1d125e..1bb6c5cb3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19271,8 +19271,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; @@ -19301,6 +19303,7 @@ static BUILDIN(setpcblock) if ((type & PCBLOCK_NPC) != 0) sd->block_action.npc = state; + script_pushint(st, 1); return true; } |