From: Rudolf Polzer Date: Wed, 28 Jul 2010 18:14:53 +0000 (+0200) Subject: allow map-specific shaders to customize outside textures X-Git-Tag: xonotic-v0.1.0preview~141^2~7^2~6 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-maps.pk3dir.git;a=commitdiff_plain;h=b6965c89d220de8cc52c8131a32da189203bb02a allow map-specific shaders to customize outside textures --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index d450fb6c..976f57e8 100644 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -113,9 +113,13 @@ use_texture() case "$2" in "$pre"/map_$map[/_]*) ;; - *) + textures/map_*) + # protect one map's textures from the evil of other maps :P echo "(EE) texture $2 of shader $1 is out of place, recommended file name is $pre/map_$map/*" ;; + *) + # using outside stuff is permitted + ;; esac ;; ## RULE: textures/common/FOO must use textures/common/FOO or textures/common/*/*