summaryrefslogtreecommitdiffstats
path: root/src/rw/VisibilityPlugins.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 17:09:14 +0200
committeraap <aap@papnet.eu>2020-05-10 17:09:14 +0200
commit0552d49fcef00be81b3b5744e49fae5e7f0fcf34 (patch)
tree5e72da39d5268d05fb4860e1b16547dbc9147160 /src/rw/VisibilityPlugins.cpp
parentadded some anim groups (diff)
downloadre3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.gz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.bz2
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.lz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.xz
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.tar.zst
re3-0552d49fcef00be81b3b5744e49fae5e7f0fcf34.zip
Diffstat (limited to 'src/rw/VisibilityPlugins.cpp')
-rw-r--r--src/rw/VisibilityPlugins.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp
index 93a478e5..c24677e0 100644
--- a/src/rw/VisibilityPlugins.cpp
+++ b/src/rw/VisibilityPlugins.cpp
@@ -147,7 +147,7 @@ CVisibilityPlugins::RenderFadingEntities(void)
if(e->m_rwObject == nil)
continue;
mi = (CSimpleModelInfo *)CModelInfo::GetModelInfo(e->GetModelIndex());
- if(mi->m_noZwrite)
+ if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite)
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, FALSE);
if(e->bDistanceFade){
@@ -159,7 +159,7 @@ CVisibilityPlugins::RenderFadingEntities(void)
}else
CRenderer::RenderOneNonRoad(e);
- if(mi->m_noZwrite)
+ if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite)
RwRenderStateSet(rwRENDERSTATEZWRITEENABLE, (void*)TRUE);
}
}
@@ -516,6 +516,20 @@ CVisibilityPlugins::RenderTrainHiDetailAlphaCB(RpAtomic *atomic)
}
RpAtomic*
+CVisibilityPlugins::RenderVehicleRotorAlphaCB(RpAtomic *atomic)
+{
+ // TODO(MIAMI):
+ return AtomicDefaultRenderCallBack(atomic);
+}
+
+RpAtomic*
+CVisibilityPlugins::RenderVehicleTailRotorAlphaCB(RpAtomic *atomic)
+{
+ // TODO(MIAMI):
+ return AtomicDefaultRenderCallBack(atomic);
+}
+
+RpAtomic*
CVisibilityPlugins::RenderPlayerCB(RpAtomic *atomic)
{
if(CWorld::Players[0].m_pSkinTexture)