summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 34fc37d..2785369 100755
--- a/build.sh
+++ b/build.sh
@@ -110,6 +110,12 @@ case " $modules " in *" 3d "*) need tile ;; esac
case " $modules " in *" model "*) need assets ;; esac
case " $DEFS " in *" -DKON_MODULE_ASSETS "*) need pack ;; esac
+# 2D games do not get the 3D renderer, the 3d, model and sector modules turn it on
+case " $DEFS " in
+*" -DKON_MODULE_3D "*|*" -DKON_MODULE_MODEL "*|*" -DKON_MODULE_SECTOR "*) ;;
+*) DEFS="$DEFS -DKONSOFREN_NO_3D" ;;
+esac
+
case " $modules " in
*" debug "*) [ $developer = 1 ] || echo "note: debug module does nothing without -d or -D" ;;
esac