File tree Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Expand file tree Collapse file tree 4 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1005,18 +1005,14 @@ void CGameSA::GetShaderReplacementStats(SShaderReplacementStats& outStats)
1005
1005
m_pRenderWare->GetShaderReplacementStats (outStats);
1006
1006
}
1007
1007
1008
- void CGameSA::RemoveAllBuildings (bool clearBuildingRemoval )
1008
+ void CGameSA::RemoveAllBuildings ()
1009
1009
{
1010
1010
m_pIplStore->SetDynamicIplStreamingEnabled (false );
1011
1011
1012
1012
m_pPools->GetDummyPool ().RemoveAllBuildingLods ();
1013
1013
m_pPools->GetBuildingsPool ().RemoveAllBuildings ();
1014
1014
1015
1015
auto pBuildingRemoval = static_cast <CBuildingRemovalSA*>(m_pBuildingRemoval);
1016
- if (clearBuildingRemoval)
1017
- {
1018
- pBuildingRemoval->ClearRemovedBuildingLists ();
1019
- }
1020
1016
pBuildingRemoval->DropCaches ();
1021
1017
1022
1018
m_isBuildingsRemoved = true ;
@@ -1036,7 +1032,7 @@ bool CGameSA::SetBuildingPoolSize(size_t size)
1036
1032
const bool shouldRemoveBuilding = !m_isBuildingsRemoved;
1037
1033
if (shouldRemoveBuilding)
1038
1034
{
1039
- RemoveAllBuildings (false );
1035
+ RemoveAllBuildings ();
1040
1036
}
1041
1037
else
1042
1038
{
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ class CGameSA : public CGame
303
303
PostWeaponFireHandler* m_pPostWeaponFireHandler;
304
304
TaskSimpleBeHitHandler* m_pTaskSimpleBeHitHandler;
305
305
306
- void RemoveAllBuildings (bool clearBuildingRemoval = true );
306
+ void RemoveAllBuildings ();
307
307
void RestoreGameBuildings ();
308
308
309
309
bool SetBuildingPoolSize (size_t size);
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ void CClientBuilding::Destroy()
145
145
if (!m_pBuilding)
146
146
return ;
147
147
148
- if (m_pHighBuilding)
148
+ if (m_pHighBuilding && m_pHighBuilding-> IsValid () )
149
149
{
150
150
m_pHighBuilding->GetBuildingEntity ()->SetLod (nullptr );
151
151
}
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ class __declspec(novtable) CGame
268
268
virtual int32_t GetBaseIDforSCM () = 0 ;
269
269
virtual int32_t GetCountOfAllFileIDs () = 0 ;
270
270
271
- virtual void RemoveAllBuildings (bool clearBuildingRemoval = true ) = 0 ;
271
+ virtual void RemoveAllBuildings () = 0 ;
272
272
virtual void RestoreGameBuildings () = 0 ;
273
273
274
274
virtual bool SetBuildingPoolSize (size_t size) = 0 ;
You can’t perform that action at this time.
0 commit comments