summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 22:32:33 +0200
committeraap <aap@papnet.eu>2020-05-31 17:05:59 +0200
commitc1e13177a1bbc6ce17d1ddc14cecc74cb278b853 (patch)
treee28cfc9af27dd1c50cbd1afba1add09f53853c49 /src/render
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar.gz
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar.bz2
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar.lz
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar.xz
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.tar.zst
re3-c1e13177a1bbc6ce17d1ddc14cecc74cb278b853.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Glass.h4
-rw-r--r--src/render/Renderer.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/render/Glass.h b/src/render/Glass.h
index 51c5aae9..736e5205 100644
--- a/src/render/Glass.h
+++ b/src/render/Glass.h
@@ -1,6 +1,7 @@
#pragma once
class CEntity;
+class CVehicle;
class CFallingGlassPane : public CMatrix
{
@@ -49,4 +50,7 @@ public:
static void WindowRespondsToSoftCollision(CEntity *entity, float amount);
static void WasGlassHitByBullet(CEntity *entity, CVector point);
static void WindowRespondsToExplosion(CEntity *entity, CVector point);
+
+//TODO(MIAMI)
+ static void CarWindscreenShatters(CVehicle *vehicle, bool unk) {}
}; \ No newline at end of file
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index f149c6fb..6ac10cb0 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -394,7 +394,7 @@ CRenderer::SetupEntityVisibility(CEntity *ent)
}
return VIS_VISIBLE;
}
- if(ent->m_flagE10){
+ if(ent->bDontStream){
if(ent->m_rwObject == nil || !ent->bIsVisible)
return VIS_INVISIBLE;
if(!ent->GetIsOnScreen() || ent->IsEntityOccluded())