]> git.rm.cloudns.org Git - xonotic/xonotic-maps.pk3dir.git/commitdiff
allow map-specific shaders to customize outside textures
authorRudolf Polzer <divverent@alientrap.org>
Wed, 28 Jul 2010 18:14:53 +0000 (20:14 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 28 Jul 2010 18:14:53 +0000 (20:14 +0200)
scripts/shader-audit.sh

index d450fb6cb730dfdb3b11056fe8c77e0469a53fd1..976f57e831cd96a59c8c26853d143b0af1d77d8a 100644 (file)
@@ -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/*/*