diff options
| author | Mittendrein Markus <maxmitti@gmx.net> | 2016-03-04 21:36:19 +0100 |
|---|---|---|
| committer | Mittendrein Markus <maxmitti@gmx.net> | 2016-03-04 21:36:19 +0100 |
| commit | cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25 (patch) | |
| tree | 9fac9652fe240ff8e3f57f682ab9031cb54357b3 | |
| parent | 1642ec65eaf83b8c1a6b1ea44d65331475fd3bf2 (diff) | |
| download | tempelschubsen-cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25.tar.gz tempelschubsen-cee4b395cbf28b0dc531fbb71bd9bc3ba2904e25.zip | |
Fix applying of mode-specific gamma
| -rw-r--r-- | TemplePushing.c4s/Script.c | 4 |
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()) |
