fix a typo for nested ifdefs
[xonotic/xonotic-maps.pk3dir.git] / scripts / shader-cpp.sh
index 3c1b83c..28890ae 100755 (executable)
@@ -90,10 +90,10 @@ preprocess()
                                ;;
                        '#else')
                                case "$condstack" in
-                                       0)
+                                       0*)
                                                condstack=1${condstack#0}
                                                ;;
-                                       1)
+                                       1*)
                                                condstack=0${condstack#1}
                                                ;;
                                esac