]> git.xonotic.org Git - xonotic/xonotic-maps.pk3dir.git/blobdiff - scripts/shader-audit.sh
fix some shader naming bugs
[xonotic/xonotic-maps.pk3dir.git] / scripts / shader-audit.sh
index 80dd7d20e2ab29e1b35bb29b317d3b9083b476ed..54018b95e4df17d650f1fff2e9e15e170bac2d70 100755 (executable)
@@ -211,7 +211,9 @@ use_texture()
                        suf=${1#*/map_}
                        map=${suf%%[_/]*}
                        case "$2" in
-                               "$pre"/map_$map[/_]*)
+                               textures/map_$map[/_]*)
+                                       ;;
+                               models/map_$map[/_]*)
                                        ;;
                                textures/map_*|models/map_*)
                                        # protect one map's textures from the evil of other maps :P