aboutsummaryrefslogtreecommitdiff
path: root/src/render/Timecycle.cpp
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2020-06-29 09:37:53 +0300
committerGitHub <noreply@github.com>2020-06-29 09:37:53 +0300
commit860f75d66ce51f2f5f3ea2b4b2b582f6d161a2bb (patch)
tree6a8f83b0d46e97b198f095b7624deecca75051e7 /src/render/Timecycle.cpp
parent1f1782c587600abef2bc3e77b4d126424dbd022d (diff)
parent209b7891d10f93754540114de34b0e4734c26630 (diff)
Merge branch 'master' into ps2menu
Diffstat (limited to 'src/render/Timecycle.cpp')
-rw-r--r--src/render/Timecycle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Timecycle.cpp b/src/render/Timecycle.cpp
index 84b6f2fe..162983dd 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);