diff options
author | bigbossbro08 <bigbossbro08@gmail.com> | 2020-05-10 18:05:45 +0200 |
---|---|---|
committer | bigbossbro08 <bigbossbro08@gmail.com> | 2020-05-10 18:05:45 +0200 |
commit | bd302ecca157982a2bfe83d6cfb3167418fd8bb3 (patch) | |
tree | b9d849f3fc61246f0038e5bec53ef8f61b040b83 /src/rw | |
parent | fixed few more typos (diff) | |
parent | some fixes and cosmetic changes (diff) | |
download | re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.gz re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.bz2 re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.lz re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.xz re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.tar.zst re3-bd302ecca157982a2bfe83d6cfb3167418fd8bb3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 8 |
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); } } |