mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 00:34:09 +00:00
small fixes
This commit is contained in:
parent
52644192e3
commit
3c3b1aadc0
9 changed files with 33 additions and 28 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue