update.sh: Move map screenshots to ctf_map/textures/ (#411)

This commit is contained in:
Thomas--S 2019-05-12 19:36:39 +02:00 committed by ANAND ︻气デ═一
parent 4d6b3512ab
commit 16ba9ef044
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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