From: Rudolf Polzer Date: Sat, 25 Sep 2010 11:43:55 +0000 (+0200) Subject: also allow effects_* as purpose named textures X-Git-Tag: xonotic-v0.1.0preview~151^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=526652ebd70e316181ad762507079ad920772a5d;p=xonotic%2Fxonotic-maps.pk3dir.git also allow effects_* as purpose named textures --- diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index da58f444..46164c49 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -149,8 +149,8 @@ use_texture() esac ;; ## RULE: textures/FOO/* must use textures/FOO/*, for FOO in decals, liquids_water, liquids_slime, liquids_lava, warpzone - textures/decals/*|textures/liquids_water/*|textures/liquids_slime/*|textures/liquids_lava/*|textures/warpzone/*) - pre=${1%/*} + textures/decals/*|textures/liquids_water/*|textures/liquids_slime/*|textures/liquids_lava/*|textures/warpzone/*|textures/effects_*) + pre=`echo "$1" | cut -d / -f 1-2` case "$2" in "$pre"/*) # I _suppose_ this is fine, as tZork committed this pack