From cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25 Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Fri, 4 Mar 2016 21:36:19 +0100 Subject: Fix applying of mode-specific gamma --- TemplePushing.c4s/Script.c | 4 ++-- 1 file 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()) -- cgit v1.2.3-54-g00ecf