diff options
author | aap <aap@papnet.eu> | 2020-05-25 20:36:18 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-25 20:36:23 +0200 |
commit | 3c3b1aadc0bfd3b8d58cc9dcc269d83f6a003235 (patch) | |
tree | d1e86b5e9fe98616c3bb83554381e681330b6b6e /src/render/Timecycle.cpp | |
parent | 52644192e37bad31a3f88e2bc271619e265c7507 (diff) |
small fixes
Diffstat (limited to 'src/render/Timecycle.cpp')
-rw-r--r-- | src/render/Timecycle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Timecycle.cpp b/src/render/Timecycle.cpp index cf3426d7..1989db5c 100644 --- a/src/render/Timecycle.cpp +++ b/src/render/Timecycle.cpp @@ -298,7 +298,7 @@ CTimeCycle::Update(void) m_CurrentStoredValue = (m_CurrentStoredValue+1)&0xF; float sunAngle = 2*PI*(CClock::GetMinutes() + CClock::GetHours()*60)/(24*60); - CVector &sunPos = GetSunPosition(); + CVector &sunPos = GetSunDirection(); sunPos.x = Sin(sunAngle); sunPos.y = 1.0f; sunPos.z = 0.2f - Cos(sunAngle); |