]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
more fixes
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:39:16 +0000 (12:39 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:39:16 +0000 (12:39 +0200)
scripts/shader-audit.sh

index 4a0bb3710c52f81b473653e1592420f1cf1359f8..5de24bc4ff580eb15399a5fc1b0b961010a2f527 100755 (executable)
@@ -90,7 +90,7 @@ use_texture()
        if [ x"$3" = x"map" ]; then
                lasttex=$2
                if [ -n "$AUDIT_ALPHACHANNELS" ]; then
-                       if [ -f "../${2}_norm.tga" ]; then
+                       if [ -f "../${2}_norm.tga" ] || [ -f "../${2}_norm.png" ] || [ -f "../${2}_norm.jpg" ]; then
                                case "$offsetmapping_match8" in
                                        '') # no dpoffsetmapping keyword
                                                getstats "../${2}_norm.tga" || getstats "../${2}_norm.png" || getstats "../${2}_norm.jpg"