From e8b00fdf987e9c689f3dbf9c22c0a6269250c3b5 Mon Sep 17 00:00:00 2001 From: Paramat Date: Fri, 5 May 2017 21:07:25 +0100 Subject: [PATCH] Clouds API: Fix yellow clouds at dawn and dusk (#5707) --- src/clouds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clouds.cpp b/src/clouds.cpp index cb8adb37..10a533ca 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;