summaryrefslogtreecommitdiffstats
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-11-03 16:59:37 +0100
committeraap <aap@papnet.eu>2020-11-03 16:59:37 +0100
commitb3da518ae02eb9c9a9cc3e0343438f07d6d28251 (patch)
tree291fa1d624bbc5ef457330c4781fa52f02719ba8 /src/render/Renderer.cpp
parentfix mistake in custom menu; update librw (diff)
downloadre3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar.gz
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar.bz2
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar.lz
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar.xz
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.tar.zst
re3-b3da518ae02eb9c9a9cc3e0343438f07d6d28251.zip
Diffstat (limited to '')
-rw-r--r--src/render/Renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 4ad1d3b9..92bbdd45 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -111,7 +111,7 @@ CRenderer::RenderOneRoad(CEntity *e)
CustomPipes::AttachGlossPipe(e->GetAtomic());
#endif
#ifdef EXTRA_MODEL_FLAGS
- if(CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
+ if(!e->IsBuilding() || CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
BACKFACE_CULLING_OFF;
e->Render();
BACKFACE_CULLING_ON;
@@ -181,7 +181,7 @@ CRenderer::RenderOneNonRoad(CEntity *e)
BACKFACE_CULLING_OFF;
}
#ifdef EXTRA_MODEL_FLAGS
- if(CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
+ if(!e->IsBuilding() || CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
BACKFACE_CULLING_OFF;
e->Render();
BACKFACE_CULLING_ON;