Skip to content

Commit 57b3aec

Browse files
committed
Make waterfalls flow down again when the heatwave effect is turned off
1 parent 365ed32 commit 57b3aec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Effects/HeatWaveNoColorGrade.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public override void Update(Scene scene) {
3636
levelData["colorGradeEase"] = colorGradeEase;
3737
levelData["colorGradeEaseSpeed"] = colorGradeEaseSpeed;
3838
level.Session.ColorGrade = colorGrade;
39+
40+
if (self.Get<float>("heat") <= 0) {
41+
// the heat hit 0, we should now restore the water sine direction
42+
// ... because if we don't, waterfalls will flow backwards
43+
Distort.WaterSineDirection = 1f;
44+
}
3945
}
4046
} else {
4147
// heat wave is visible: update as usual.

0 commit comments

Comments
 (0)