Skip to content

Commit 0a1cbb8

Browse files
authored
Fix random foliage on replaced collisions (#2678)
1 parent 4d4dec7 commit 0a1cbb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/game_sa/CModelInfoSA.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,9 @@ void CModelInfoSA::SetColModel(CColModel* pColModel)
12871287
m_pInterface->bDoWeOwnTheColModel = false;
12881288
m_pInterface->bCollisionWasStreamedWithModel = false;
12891289

1290+
// Fix random foliage on custom collisions by calling CPlantMgr::SetPlantFriendlyFlagInAtomicMI
1291+
(reinterpret_cast<void(__cdecl*)(CBaseModelInfoSAInterface*)>(0x5DB650))(m_pInterface);
1292+
12901293
// Set some lighting for this collision if not already present
12911294
CColDataSA* pColData = pColModelInterface->m_data;
12921295

0 commit comments

Comments
 (0)