summaryrefslogtreecommitdiffstats
path: root/src/render/PointLights.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-30 21:06:55 +0200
committeraap <aap@papnet.eu>2019-06-30 21:06:55 +0200
commitaf2e764d81d6a5981bab0a0d1fd0c79cf2465f69 (patch)
tree7b3202766bcbe9711d4a0a24952bca3c4e39d6ae /src/render/PointLights.cpp
parentMerge pull request #79 from Nick007J/master (diff)
downloadre3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.gz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.bz2
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.lz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.xz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.zst
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.zip
Diffstat (limited to '')
-rw-r--r--src/render/PointLights.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/render/PointLights.cpp b/src/render/PointLights.cpp
index 2b840314..9e98a327 100644
--- a/src/render/PointLights.cpp
+++ b/src/render/PointLights.cpp
@@ -13,8 +13,6 @@
int16 &CPointLights::NumLights = *(int16*)0x95CC3E;
CRegisteredPointLight *CPointLights::aLights = (CRegisteredPointLight*)0x7096D0;
-//WRAPPER void CPointLights::RenderFogEffect(void) { EAXJMP(0x510C30); }
-
void
CPointLights::InitPerFrame(void)
{
@@ -69,7 +67,7 @@ CPointLights::GenerateLightsAffectingObject(CVector *objCoors)
ret = 1.0f;
for(i = 0; i < NumLights; i++){
- if(aLights[i].type == LIGHT_FOGONLY_3 || aLights[i].type == LIGHT_FOGONLY_4)
+ if(aLights[i].type == LIGHT_FOGONLY || aLights[i].type == LIGHT_FOGONLY_ALWAYS)
continue;
// same weird distance calculation. simplified here
@@ -235,7 +233,7 @@ CPointLights::RenderFogEffect(void)
}
}
- }else if(aLights[i].type == LIGHT_POINT || aLights[i].type == LIGHT_FOGONLY_3 || aLights[i].type == LIGHT_FOGONLY_4){
+ }else if(aLights[i].type == LIGHT_POINT || aLights[i].type == LIGHT_FOGONLY || aLights[i].type == LIGHT_FOGONLY_ALWAYS){
if(CWorld::ProcessVerticalLine(aLights[i].coors, aLights[i].coors.z - 20.0f,
point, entity, true, false, false, false, true, false, nil)){