Skip to content

Commit 5ae7d20

Browse files
committed
review
1 parent 9ed6662 commit 5ae7d20

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Client/game_sa/CGameSA.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,8 @@ void CGameSA::RemoveGameWorld()
10691069
// Remove all shadows in CStencilShadowObjects::dtorAll
10701070
((void* (*)())0x711390)();
10711071

1072-
m_pPools->GetDummyPool().RemoveAllWithBackup();
1073-
m_pPools->GetBuildingsPool().RemoveAllWithBackup();
1072+
m_Pools->GetDummyPool().RemoveAllWithBackup();
1073+
m_Pools->GetBuildingsPool().RemoveAllWithBackup();
10741074

10751075
static_cast<CBuildingRemovalSA*>(m_pBuildingRemoval)->DropCaches();
10761076

@@ -1079,8 +1079,8 @@ void CGameSA::RemoveGameWorld()
10791079

10801080
void CGameSA::RestoreGameWorld()
10811081
{
1082-
m_pPools->GetBuildingsPool().RestoreBackup();
1083-
m_pPools->GetDummyPool().RestoreBackup();
1082+
m_Pools->GetBuildingsPool().RestoreBackup();
1083+
m_Pools->GetDummyPool().RestoreBackup();
10841084

10851085
m_pIplStore->SetDynamicIplStreamingEnabled(true, [](CIplSAInterface* ipl) { return memcmp("barriers", ipl->name, 8) != 0; });
10861086
m_isGameWorldRemoved = false;

Client/sdk/game/Common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#define MAX_PEDS ( MAX_PEDS_MTA + 30 ) // 140
2828
#define MAX_OBJECTS ( MAX_OBJECTS_MTA + 200 ) // 1200
2929
#define MAX_BUILDINGS 13000
30+
#define MAX_DUMMIES 2500
3031
#define MAX_ENTRY_INFO_NODES ( MAX_ENTRY_INFO_NODES_MTA + 600 ) // 72600
3132
#define MAX_POINTER_SINGLE_LINKS ( MAX_POINTER_SINGLE_LINKS_MTA + 5000 ) // 90000
3233
#define MAX_POINTER_DOUBLE_LINKS ( MAX_POINTER_DOUBLE_LINKS_MTA + 800 ) // 74800

Server/mods/deathmatch/logic/CResourceChecker.Data.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ namespace
174174
{false, "getHelicopterRotorSpeed", "getVehicleRotorSpeed"},
175175

176176
{false, "setPedOnFire", "setElementOnFire"},
177-
{false, "isPedOnFire", "isElementOnFire"}
177+
{false, "isPedOnFire", "isElementOnFire"},
178+
179+
{false, "removeAllGameBuildings", "removeGameWorld"},
180+
{false, "restoreAllGameBuildings", "restoreGameWorld"},
178181
};
179182

180183
SDeprecatedItem serverDeprecatedList[] = {

0 commit comments

Comments
 (0)