Skip to content

Commit 4dc977a

Browse files
authored
Fix createBuilding disable_backface_culling (#4016)
Fix disable_backface_culling
1 parent 5330721 commit 4dc977a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/mods/deathmatch/logic/CClientBuilding.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ void CClientBuilding::Create()
133133
if (!m_pBuilding)
134134
return;
135135

136-
m_pBuilding->SetBackfaceCulled(!m_bDoubleSided);
136+
if (m_bDoubleSidedInit)
137+
m_pBuilding->SetBackfaceCulled(!m_bDoubleSided);
137138

138139
if (!m_usesCollision)
139140
{

0 commit comments

Comments
 (0)