Skip to content

Commit 51eeba9

Browse files
Synchronize changes from 1.6 master branch [ci skip]
695eb16 Fix setElementDoubleSided resets after building manipulations (PR #3976) 38ef7ac Update client en_US pot
2 parents 352d118 + 695eb16 commit 51eeba9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Client/mods/deathmatch/logic/CClientBuilding.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ void CClientBuilding::Create()
133133

134134
m_pBuilding = g_pGame->GetPools()->GetBuildingsPool().AddBuilding(this, m_usModelId, &m_vPos, &vRot4D, m_interior);
135135

136+
if (!m_pBuilding)
137+
return;
138+
139+
m_pBuilding->SetBackfaceCulled(!m_bDoubleSided);
140+
136141
if (!m_usesCollision)
137142
{
138143
m_pBuilding->SetUsesCollision(m_usesCollision);

0 commit comments

Comments
 (0)