From ac24f094179412345c8c1882f840b85d0fadd572 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 15 Mar 2020 01:00:04 +0000 Subject: [PATCH] Automatically fix incorrect chest zones in map configs --- mods/ctf/ctf_map/ctf_map_core/schem_map.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua index 788d050..f157963 100644 --- a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua +++ b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua @@ -168,6 +168,8 @@ local function load_map_meta(idx, dirname, meta) assert(from and to, "Positions needed for chest zone " .. i .. " in map " .. map.name) + from, to = vector.sort(from, to) + map.chests[i] = { from = vector.add(offset, from), to = vector.add(offset, to),