Clouds: Fix reddish clouds. Add missing alpha update
authorparamat <mat.gregory@virginmedia.com>
Tue, 2 May 2017 00:37:23 +0000 (01:37 +0100)
committerparamat <mat.gregory@virginmedia.com>
Thu, 4 May 2017 03:26:06 +0000 (04:26 +0100)
Fix accidental swap of red and blue components that caused reddish clouds
Add missing update of alpha in remoteplayer.cpp

src/clouds.cpp
src/remoteplayer.cpp

index 627fac47a2742157c4b72266907e0e06f0518a97..cb8adb37fce4c9c1717fffd5e68d8789beeafe9e 100644 (file)
@@ -61,7 +61,7 @@ Clouds::Clouds(
 
        m_params.density       = 0.4f;
        m_params.thickness     = 16.0f;
-       m_params.color_bright  = video::SColor(229, 255, 240, 240);
+       m_params.color_bright  = video::SColor(229, 240, 240, 255);
        m_params.color_ambient = video::SColor(255, 0, 0, 0);
        m_params.speed         = v2f(0.0f, -2.0f);
 
index 2b4db62f5fc3bdd58ab6ef209cad03ec7bd366dc..540132978a5cbedb9a983a708d4187046d1a3a75 100644 (file)
@@ -68,7 +68,7 @@ RemotePlayer::RemotePlayer(const char *name, IItemDefManager *idef):
 
        // copy defaults
        m_cloud_params.density = 0.4f;
-       m_cloud_params.color_bright = video::SColor(255, 255, 240, 240);
+       m_cloud_params.color_bright = video::SColor(229, 240, 240, 255);
        m_cloud_params.color_ambient = video::SColor(255, 0, 0, 0);
        m_cloud_params.height = 120.0f;
        m_cloud_params.thickness = 16.0f;