Skip to content

Commit

Permalink
Clouds: Fix reddish clouds. Add missing alpha update
Browse files Browse the repository at this point in the history
Fix accidental swap of red and blue components that caused reddish clouds
Add missing update of alpha in remoteplayer.cpp
  • Loading branch information
paramat committed May 4, 2017
1 parent ae0d8f7 commit 76ec6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clouds.cpp
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/remoteplayer.cpp
Expand Up @@ -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;
Expand Down

1 comment on commit 76ec6b8

@bendeutsch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Mea culpa 😞

Please sign in to comment.