CVisibilityPlugins and CRenderer fixes

This commit is contained in:
aap committed 2021-07-29 19:43:47 +02:00
1 parent 6cea1de9e6
commit 3c5bae164f
6 files changed
+50 -23

No files matched your search

+4 -1
View File
@@ -154,11 +154,14 @@ CRenderer::PreRender(void)
void
CRenderer::RenderOneRoad(CEntity *e)
{
#ifndef MASTER
if(gbDontRenderBuildings)
return;
if(gbShowCollisionPolys)
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel(), e->GetModelIndex());
else{
else
#endif
{
#ifdef EXTENDED_PIPELINES
CustomPipes::AttachGlossPipe(e->GetAtomic());
#endif