summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMittendrein Markus <maxmitti@gmx.net>2016-03-04 21:36:19 +0100
committerMittendrein Markus <maxmitti@gmx.net>2016-03-04 21:36:19 +0100
commitcee4b395cbf28b0dc531fbb71bd9bc3ba2904e25 (patch)
tree9fac9652fe240ff8e3f57f682ab9031cb54357b3
parent1642ec65eaf83b8c1a6b1ea44d65331475fd3bf2 (diff)
downloadtempelschubsen-cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25.tar.gz
tempelschubsen-cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25.zip
Fix applying of mode-specific gamma
-rw-r--r--TemplePushing.c4s/Script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 0022e8a..4cada7f 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -194,8 +194,8 @@ func Script0()
ambienceSounds = mode->~AmbienceSounds() || section->~SectionAmbienceSounds() || [];
mode = CreateObject(mode, 0, 0, NO_OWNER);
-
- if (mode->~Gamma()) SetGamma(mode->Gamma());
+ var modeGamma = mode->~Gamma();
+ if (modeGamma) SetGamma(modeGamma[0], modeGamma[1], modeGamma[2]);
// Create spawnpoints
if (!mode->~NoSpawnpoints())