summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-11 17:04:08 +0200
committeraap <aap@papnet.eu>2020-05-11 17:04:08 +0200
commit95920d54f2b570bb0aa218ad574a51acdded6a4f (patch)
treede04aa0149505c3cb68ae30ffb6066e87e9e5773
parentremove aps from premake (diff)
downloadre3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar.gz
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar.bz2
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar.lz
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar.xz
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.tar.zst
re3-95920d54f2b570bb0aa218ad574a51acdded6a4f.zip
-rw-r--r--src/core/Streaming.cpp2
-rw-r--r--src/render/Renderer.cpp30
2 files changed, 16 insertions, 16 deletions
diff --git a/src/core/Streaming.cpp b/src/core/Streaming.cpp
index f24192ef..e430f758 100644
--- a/src/core/Streaming.cpp
+++ b/src/core/Streaming.cpp
@@ -262,7 +262,7 @@ CStreaming::Init(void)
}
}
#else
- CStreaming::Init();
+ CStreaming::Init2();
#endif
}
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 714ff6e6..1f1e3b50 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -362,21 +362,19 @@ CRenderer::SetupEntityVisibility(CEntity *ent)
ent->bNoBrightHeadLights = false;
}
return VIS_OFFSCREEN;
- }else{
- // All sorts of Clumps
- if(ent->m_rwObject == nil || !ent->bIsVisible)
- return VIS_INVISIBLE;
- if(!ent->GetIsOnScreen())
- return VIS_OFFSCREEN;
- if(ent->bDrawLast){
- dist = (ent->GetPosition() - ms_vecCameraPosition).Magnitude();
- CVisibilityPlugins::InsertEntityIntoSortedList(ent, dist);
- ent->bDistanceFade = false;
- return VIS_INVISIBLE;
- }else
- return VIS_VISIBLE;
}
- return VIS_INVISIBLE;
+ // All sorts of Clumps
+ if(ent->m_rwObject == nil || !ent->bIsVisible)
+ return VIS_INVISIBLE;
+ if(!ent->GetIsOnScreen())
+ return VIS_OFFSCREEN;
+ if(ent->bDrawLast){
+ dist = (ent->GetPosition() - ms_vecCameraPosition).Magnitude();
+ CVisibilityPlugins::InsertEntityIntoSortedList(ent, dist);
+ ent->bDistanceFade = false;
+ return VIS_INVISIBLE;
+ }
+ return VIS_VISIBLE;
}
if(ent->IsObject() &&
((CObject*)ent)->ObjectCreatedBy == TEMP_OBJECT){
@@ -1196,8 +1194,10 @@ CRenderer::IsVehicleCullZoneVisible(CEntity *ent)
void
CRenderer::RemoveVehiclePedLights(CEntity *ent, bool reset)
{
- if(ent->bRenderScorched)
+ if(ent->bRenderScorched){
WorldReplaceScorchedLightsWithNormal(Scene.world);
+ return;
+ }
CPointLights::RemoveLightsAffectingObject();
if(reset)
ReSetAmbientAndDirectionalColours();