summaryrefslogtreecommitdiffstats
path: root/src/rw/VisibilityPlugins.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 17:09:57 +0200
committeraap <aap@papnet.eu>2020-05-10 17:09:57 +0200
commit5b605c127144ab805581f62015ef3742c1d4a64e (patch)
treef86a422d080f58afcaa5eac7cf2b378bdf306142 /src/rw/VisibilityPlugins.cpp
parentSmall unification (diff)
downloadre3-5b605c127144ab805581f62015ef3742c1d4a64e.tar
re3-5b605c127144ab805581f62015ef3742c1d4a64e.tar.gz
re3-5b605c127144ab805581f62015ef3742c1d4a64e.tar.bz2
re3-5b605c127144ab805581f62015ef3742c1d4a64e.tar.lz
re3-5b605c127144ab805581f62015ef3742c1d4a64e.tar.xz
re3-5b605c127144ab805581f62015ef3742c1d4a64e.tar.zst
re3-5b605c127144ab805581f62015ef3742c1d4a64e.zip
Diffstat (limited to 'src/rw/VisibilityPlugins.cpp')
-rw-r--r--src/rw/VisibilityPlugins.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp
index b1a101e3..5184860b 100644
--- a/src/rw/VisibilityPlugins.cpp
+++ b/src/rw/VisibilityPlugins.cpp
@@ -147,7 +147,11 @@ CVisibilityPlugins::RenderFadingEntities(void)
if(e->m_rwObject == nil)
continue;
mi = (CSimpleModelInfo *)CModelInfo::GetModelInfo(e->GetModelIndex());
+#ifdef FIX_BUGS
+ if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite)
+#else
if(mi->m_noZwrite)
+#endif
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE);
if(e->bDistanceFade){
@@ -159,7 +163,11 @@ CVisibilityPlugins::RenderFadingEntities(void)
}else
CRenderer::RenderOneNonRoad(e);
+#ifdef FIX_BUGS
+ if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite)
+#else
if(mi->m_noZwrite)
+#endif
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE);
}
}