projects
/
xonotic
/
xonotic-maps.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddb7eea
)
allow map-specific shaders to customize outside textures
author
Rudolf Polzer <divverent@alientrap.org>
Wed, 28 Jul 2010 18:14:53 +0000
(20:14 +0200)
committer
Rudolf Polzer <divverent@alientrap.org>
Wed, 28 Jul 2010 18:14:53 +0000
(20:14 +0200)
scripts/shader-audit.sh
patch
|
blob
|
history
diff --git
a/scripts/shader-audit.sh
b/scripts/shader-audit.sh
index
d450fb6
..
976f57e
100644
(file)
--- 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/*/*