summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 2785369..c532155 100755
--- a/build.sh
+++ b/build.sh
@@ -110,10 +110,9 @@ 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
+# the 3D renderer is only compiled when a module that draws in 3D is picked
case " $DEFS " in
-*" -DKON_MODULE_3D "*|*" -DKON_MODULE_MODEL "*|*" -DKON_MODULE_SECTOR "*) ;;
-*) DEFS="$DEFS -DKONSOFREN_NO_3D" ;;
+*" -DKON_MODULE_3D "*|*" -DKON_MODULE_MODEL "*|*" -DKON_MODULE_SECTOR "*) DEFS="$DEFS -DKONSOFREN_3D" ;;
esac
case " $modules " in