aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2017-05-05 21:07:25 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-05 22:07:25 +0200
commite8b00fdf987e9c689f3dbf9c22c0a6269250c3b5 (patch)
tree94ce64f4ec15f14e073998ebf687d115b2ae9291
parent7c82f1e5dd55acf37cacc79709d4fb4d44e8698f (diff)
downloadminetest-e8b00fdf987e9c689f3dbf9c22c0a6269250c3b5.tar.gz
minetest-e8b00fdf987e9c689f3dbf9c22c0a6269250c3b5.tar.bz2
minetest-e8b00fdf987e9c689f3dbf9c22c0a6269250c3b5.zip
Clouds API: Fix yellow clouds at dawn and dusk (#5707)
-rw-r--r--src/clouds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp
index cb8adb37f..10a533cae 100644
--- a/src/clouds.cpp
+++ b/src/clouds.cpp
@@ -360,7 +360,7 @@ void Clouds::update(v2f camera_p, video::SColorf color_diffuse)
m_camera_pos = camera_p;
m_color.r = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getRed(),
m_params.color_ambient.getRed()), 255) / 255.0f;
- m_color.g = MYMIN(MYMAX(color_diffuse.r * m_params.color_bright.getGreen(),
+ m_color.g = MYMIN(MYMAX(color_diffuse.g * m_params.color_bright.getGreen(),
m_params.color_ambient.getGreen()), 255) / 255.0f;
m_color.b = MYMIN(MYMAX(color_diffuse.b * m_params.color_bright.getBlue(),
m_params.color_ambient.getBlue()), 255) / 255.0f;