diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 21:36:53 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 21:36:53 +0200 |
commit | 99295827f79ccffa9d3976af2b9a19920d7d8bde (patch) | |
tree | e61ef805296e034766fca5e852224c6e522f8854 /src/render/PointLights.cpp | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
parent | Merge pull request #80 from ShFil119/special (diff) | |
download | re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.gz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.bz2 re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.lz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.xz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.zst re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/PointLights.cpp | 6 |
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)){ |