mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-16 20:04:48 +00:00
autobuild: support overriding map bounds for minimap from mapinfo
This commit is contained in:
parent
07ce56f65b
commit
412fb97359
@ -157,7 +157,13 @@ buildthemap()
|
||||
t0=`date +%s`
|
||||
(
|
||||
cd maps
|
||||
../../../misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $build_override > "$M.log"
|
||||
sz=`grep '^size\>' "$M.mapinfo" 2>/dev/null || true`
|
||||
if [ -n "$sz" ]; then
|
||||
minimap_override="-minimap + -minmax ${sz#size}"
|
||||
else
|
||||
minimap_override=
|
||||
fi
|
||||
../../../misc/tools/xonotic-map-compiler "$M" `grep ^- "$M.map.options" | cut -d '#' -f 1` $build_override $minimap_override > "$M.log"
|
||||
)
|
||||
t1=`date +%s`
|
||||
dt=$(($t1 - $t0))
|
||||
|
Loading…
Reference in New Issue
Block a user