summaryrefslogtreecommitdiff
path: root/src/sky.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2017-05-04 03:02:16 +0100
committerparamat <mat.gregory@virginmedia.com>2017-05-04 04:26:06 +0100
commitdd591119a3945a35f5355bb1e68ee748d39f6f60 (patch)
treed332e2673fb064abd98dfb5a3572def7cb3dc9ed /src/sky.cpp
parent76ec6b83133f286581f051dcb1b3da5a52e30b5b (diff)
downloadminetest-dd591119a3945a35f5355bb1e68ee748d39f6f60.tar.gz
minetest-dd591119a3945a35f5355bb1e68ee748d39f6f60.tar.bz2
minetest-dd591119a3945a35f5355bb1e68ee748d39f6f60.zip
Directional coloured fog: Fix order of SColor components
'video::SColor pointcolor' was initialised with order RGBA instead of ARGB. No change in behaviour as 'm_bgcolor' has alpha 255.
Diffstat (limited to 'src/sky.cpp')
-rw-r--r--src/sky.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sky.cpp b/src/sky.cpp
index 5414f74bd..b739fe1ad 100644
--- a/src/sky.cpp
+++ b/src/sky.cpp
@@ -609,7 +609,7 @@ void Sky::update(float time_of_day, float time_brightness,
);
// Horizon coloring based on sun and moon direction during sunset and sunrise
- video::SColor pointcolor = video::SColor(255, 255, 255, m_bgcolor.getAlpha());
+ video::SColor pointcolor = video::SColor(m_bgcolor.getAlpha(), 255, 255, 255);
if (m_directional_colored_fog) {
if (m_horizon_blend() != 0) {
// Calculate hemisphere value from yaw, (inverted in third person front view)