From 1e56b867aef07d78e50f4662fc0dd1c1c14959bf Mon Sep 17 00:00:00 2001 From: Andrew Copland Date: Sun, 12 May 2019 16:27:36 +0100 Subject: [PATCH] Minor tweaks --- src/GasGiant.cpp | 7 ++----- src/GeoSphere.cpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/GasGiant.cpp b/src/GasGiant.cpp index 29b567c9c18..77272c04129 100644 --- a/src/GasGiant.cpp +++ b/src/GasGiant.cpp @@ -307,15 +307,12 @@ GasGiant::GasGiant(const SystemBody *body) : BaseSphere(body), m_hasTempCampos(false), m_tempCampos(0.0), + m_hasJobRequest { false, false, false, false, false, false }, m_hasGpuJobRequest(false), m_timeDelay(s_initialCPUDelayTime) { s_allGasGiants.push_back(this); - for (int i = 0; i < NUM_PATCHES; i++) { - m_hasJobRequest[i] = false; - } - Random rng(GetSystemBody()->GetSeed() + 4609837); const bool bEnableGPUJobs = (Pi::config->Int("EnableGPUJobs") == 1); @@ -669,7 +666,7 @@ void GasGiant::Render(Graphics::Renderer *renderer, const matrix4x4d &modelView, //Update material parameters //XXX no need to calculate AP every frame m_materialParameters.atmosphere = GetSystemBody()->CalcAtmosphereParams(); - m_materialParameters.atmosphere.center = trans * vector3d(0.0, 0.0, 0.0); + m_materialParameters.atmosphere.center = trans * vector3d(0.0); m_materialParameters.atmosphere.planetRadius = radius; m_materialParameters.shadows = shadows; diff --git a/src/GeoSphere.cpp b/src/GeoSphere.cpp index 95af46967b2..a7dfb7831e6 100644 --- a/src/GeoSphere.cpp +++ b/src/GeoSphere.cpp @@ -443,7 +443,7 @@ void GeoSphere::Render(Graphics::Renderer *renderer, const matrix4x4d &modelView //Update material parameters //XXX no need to calculate AP every frame m_materialParameters.atmosphere = GetSystemBody()->CalcAtmosphereParams(); - m_materialParameters.atmosphere.center = trans * vector3d(0.0, 0.0, 0.0); + m_materialParameters.atmosphere.center = trans * vector3d(0.0); m_materialParameters.atmosphere.planetRadius = radius; m_materialParameters.shadows = shadows;