diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-06-02 21:16:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-06-02 21:16:51 -0300 |
commit | 255c3911a62391d854f350e016d67c57de6ce7d3 (patch) | |
tree | 1bf248af8a2b0846fd7648802efde326b7007912 /npc | |
parent | bcb8d5f05db2627ef8bd2faee1151a19962d5593 (diff) | |
download | serverdata-255c3911a62391d854f350e016d67c57de6ce7d3.tar.gz serverdata-255c3911a62391d854f350e016d67c57de6ce7d3.tar.bz2 serverdata-255c3911a62391d854f350e016d67c57de6ce7d3.tar.xz serverdata-255c3911a62391d854f350e016d67c57de6ce7d3.zip |
Fix exploit introduced on previous commit
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/util.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 2d834ea2d..7b833b34e 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -1224,10 +1224,8 @@ function script teleporthome { consolewarn("[WARN] Failed to teleporthome, map %s savepoint %s. Fallback to %s", getmap(), getsavepoint(0), LOCATION$); // Fallback - attempt to spoof the original location as a last resort .@lx=array_find($@LOCMASTER_LOC$, LOCATION$); - if (.@lx >= 0) { + if (.@lx >= 0) warp $@LOCMASTER_MAP$[.@lx], $@LOCMASTER_X[.@lx], $@LOCMASTER_Y[.@lx]; - end; - } } .@i=array_find($@LOCMASTER_MAP$, getmap()); if (.@i >= 0) |