summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-26 11:25:23 +0200
committerGitHub <noreply@github.com>2020-05-26 11:25:23 +0200
commit0b8f045d363dec9e9bf96d98995b339e12e04bd6 (patch)
tree86df5a8337edb1af67275219cef37d235aaebdf7 /src/entities/Entity.cpp
parentfixed filename (diff)
parentCVehicle (diff)
downloadre3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.gz
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.bz2
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.lz
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.xz
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.tar.zst
re3-0b8f045d363dec9e9bf96d98995b339e12e04bd6.zip
Diffstat (limited to 'src/entities/Entity.cpp')
-rw-r--r--src/entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index a0c5c484..68486a3c 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -910,7 +910,7 @@ CEntity::ProcessLightsForEntity(void)
camDir *= 2.0f/dist;
glareDir += camDir;
glareDir.Normalise();
- float camAngle = -DotProduct(glareDir, CTimeCycle::GetSunPosition());
+ float camAngle = -DotProduct(glareDir, CTimeCycle::GetSunDirection());
if(camAngle > 0.0f){
float intens = Sqrt(camAngle) * CWeather::SunGlare;
pos += camDir;