From 16ba9ef04438a04bb1065cf792a5d4c9ede1ea5b Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Sun, 12 May 2019 19:36:39 +0200 Subject: [PATCH] update.sh: Move map screenshots to ctf_map/textures/ (#411) --- mods/ctf/ctf_map/schem_map.lua | 2 +- update.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ctf/ctf_map/schem_map.lua b/mods/ctf/ctf_map/schem_map.lua index 8997106..b3d2e68 100644 --- a/mods/ctf/ctf_map/schem_map.lua +++ b/mods/ctf/ctf_map/schem_map.lua @@ -241,7 +241,7 @@ local function load_maps() if extension == "mts" then files_hash[dir .. "/" .. filename] = true else - if extension ~= "conf" and extension ~= "md" + if extension ~= "conf" and extension ~= "md" and extension ~= "png" and files[i] ~= ".git" then error("Map extension is not '.mts': " .. files[i]) end diff --git a/update.sh b/update.sh index d3f91a5..921f54b 100755 --- a/update.sh +++ b/update.sh @@ -5,5 +5,6 @@ cd ../crafting && git pull origin master && cd ../ctf/ctf_map/maps && git pull origin master && +cp ./*.png ../textures/ && cd ../../../.. && ./build.sh ../games/capturetheflag