Skip to content

Commit

Permalink
Fix setElementDoubleSided resets after building manipulations (PR #3976)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij authored Jan 26, 2025
1 parent 38ef7ac commit 695eb16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/mods/deathmatch/logic/CClientBuilding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ void CClientBuilding::Create()

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

if (!m_pBuilding)
return;

m_pBuilding->SetBackfaceCulled(!m_bDoubleSided);

if (!m_usesCollision)
{
m_pBuilding->SetUsesCollision(m_usesCollision);
Expand Down

0 comments on commit 695eb16

Please sign in to comment.