Skip to content

Commit 1e064bc

Browse files
authored
Apply suggestions from code review
1 parent 46225a7 commit 1e064bc

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

Client/mods/deathmatch/logic/CClientVehicleManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ CClientVehicleManager::CClientVehicleManager(CClientManager* pManager)
6161
// Initialize members
6262
m_pManager = pManager;
6363
m_bCanRemoveFromList = true;
64-
m_spawnFlyingComponentsDuringRecreate = true;
6564

6665
int iVehicleID = 0;
6766
for (int i = 0; i < 212; i++)

Client/mods/deathmatch/logic/CClientVehicleManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ class CClientVehicleManager
7878
bool m_bCanRemoveFromList;
7979
CMappedArray<CClientVehicle*> m_List;
8080
CMappedArray<CClientVehicle*> m_StreamedIn;
81-
bool m_spawnFlyingComponentsDuringRecreate;
81+
bool m_spawnFlyingComponentsDuringRecreate{true};
8282
};

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ CGame::CGame() : m_FloodProtect(4, 30000, 30000) // Max of 4 connecti
260260
m_WorldSpecialProps[WorldSpecialProperty::ROADSIGNSTEXT] = true;
261261
m_WorldSpecialProps[WorldSpecialProperty::TUNNELWEATHERBLEND] = true;
262262
m_WorldSpecialProps[WorldSpecialProperty::IGNOREFIRESTATE] = false;
263-
m_WorldSpecialProps[WorldSpecialProperty::FLYINGCOMPONENTS] = false;
263+
m_WorldSpecialProps[WorldSpecialProperty::FLYINGCOMPONENTS] = true;
264264

265265
m_JetpackWeapons[WEAPONTYPE_MICRO_UZI] = true;
266266
m_JetpackWeapons[WEAPONTYPE_TEC9] = true;

Shared/sdk/net/SyncStructures.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,8 +2141,6 @@ struct SWorldSpecialPropertiesStateSync : public ISyncStructure
21412141

21422142
if (bitStream.Can(eBitStreamVersion::WorldSpecialProperty_FlyingComponents))
21432143
bitStream.WriteBits(reinterpret_cast<const char*>(&data7), BITCOUNT7);
2144-
2145-
21462144
//// Example for adding item:
21472145
// if (bitStream.Can(eBitStreamVersion::YourProperty))
21482146
// bitStream.WriteBits(reinterpret_cast<const char*>(&data9), BITCOUNT9);
@@ -2215,7 +2213,7 @@ struct SWorldSpecialPropertiesStateSync : public ISyncStructure
22152213
data4.extendedwatercannons = true;
22162214
data5.tunnelweatherblend = true;
22172215
data6.ignoreFireState = false;
2218-
data7.flyingcomponents = false;
2216+
data7.flyingcomponents = true;
22192217
}
22202218
};
22212219

0 commit comments

Comments
 (0)