summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d
diff options
context:
space:
mode:
authorZed <Zed@zed.zed>2016-03-03 22:24:18 +0100
committerZed <Zed@zed.zed>2016-03-03 22:24:18 +0100
commit6f97801b70d3bdb0112f82efef7b6a0cb73a3fc9 (patch)
tree1271ca998aef2123cc9f4acd26ba7e16c47610e7 /TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d
parentcf2d6bfb5cd3943349bd2d772330082f1e61ba00 (diff)
downloadtempelschubsen-6f97801b70d3bdb0112f82efef7b6a0cb73a3fc9.tar.gz
tempelschubsen-6f97801b70d3bdb0112f82efef7b6a0cb73a3fc9.zip
Prevent sun from being created if Festive Mode has been selected
Diffstat (limited to 'TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d')
-rw-r--r--TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c b/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
index 9923b06..4e1c3ce 100644
--- a/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
+++ b/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
@@ -26,8 +26,11 @@ protected func Initialize()
}
// Create sun and lenseflare
- CreateObject(SONE, 0, 0, NO_OWNER);
- CreateObject(LENS, 0, 0, NO_OWNER);
+ if (mode != MODE_Festive)
+ {
+ CreateObject(SONE, 0, 0, NO_OWNER);
+ CreateObject(LENS, 0, 0, NO_OWNER);
+ };
SetSkyParallax(0, 0, 0, 2, 0, 0, 0);