diff --git a/modules/exoplanets/exoplanetsmodule_lua.inl b/modules/exoplanets/exoplanetsmodule_lua.inl index af0f07e67a..0f7de105c4 100644 --- a/modules/exoplanets/exoplanetsmodule_lua.inl +++ b/modules/exoplanets/exoplanetsmodule_lua.inl @@ -371,8 +371,8 @@ void createExoplanetSystem(const std::string& starName) { ); const glm::dmat3 rotationMat3 = static_cast(rotation); - const float lowerOffset = planet.aLower / planet.a; - const float upperOffset = planet.aUpper / planet.a; + const float lowerOffset = static_cast(planet.aLower / planet.a); + const float upperOffset = static_cast(planet.aUpper / planet.a); const std::string discNode = "{" "Identifier = '" + planetIdentifier + "_Disc'," @@ -431,6 +431,16 @@ void createExoplanetSystem(const std::string& starName) { float center = limitsInMeter[0] + half; float relativeOffset = half / center; + constexpr const char* description = + "The habitable zone is the region around a star in which an Earth-like " + "planet can potentially have liquid water on its surface." + "

" + "The inner boundary is where the greenhouse gases in the atmosphere " + "would trap any incoming infrared radiation, leading to the planet " + "surface becoming so hot that water boils away. The outer boundary is where " + "the greenhouse effect would not be able to maintain surface temperature " + "above freezing anywhere on the planet."; + const std::string zoneDiscNode = "{" "Identifier = '" + starIdentifier + "_HZ_Disc'," "Parent = '" + starIdentifier + "'," @@ -460,7 +470,8 @@ void createExoplanetSystem(const std::string& starName) { "}," "GUI = {" "Name = '" + starName + " Habitable Zone'," - "Path = '" + guiPath + "'" + "Path = '" + guiPath + "'," + "Description = '" + description + "'" "}" "}";