aboutsummaryrefslogtreecommitdiff
path: root/src/skyparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/skyparams.h')
-rw-r--r--src/skyparams.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/skyparams.h b/src/skyparams.h
index 6c904d2a1..0adb3f038 100644
--- a/src/skyparams.h
+++ b/src/skyparams.h
@@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
+
struct SkyColor
{
video::SColor day_sky;
@@ -32,6 +33,8 @@ struct SkyColor
struct SkyboxParams
{
+ static constexpr float INVALID_SKYBOX_TILT = -1024.f;
+
video::SColor bgcolor;
std::string type;
std::vector<std::string> textures;
@@ -40,7 +43,7 @@ struct SkyboxParams
video::SColor fog_sun_tint;
video::SColor fog_moon_tint;
std::string fog_tint_type;
- float body_orbit_tilt;
+ float body_orbit_tilt { INVALID_SKYBOX_TILT };
};
struct SunParams
@@ -96,7 +99,6 @@ public:
sky.fog_sun_tint = video::SColor(255, 244, 125, 29);
sky.fog_moon_tint = video::SColorf(0.5, 0.6, 0.8, 1).toSColor();
sky.fog_tint_type = "default";
- sky.body_orbit_tilt = 0.0f;
return sky;
}