Skip to content

Commit 2c921fb

Browse files
committed
Refactor
1 parent 65a2dc8 commit 2c921fb

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Client/mods/deathmatch/logic/CClientGame.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ CClientGame::~CClientGame()
410410
m_bBeingDeleted = true;
411411
// Remove active projectile references to local player
412412
if (auto pLocalPlayer = g_pClientGame->GetLocalPlayer())
413-
g_pGame->GetProjectileInfo()->RemoveEntityReferences(pLocalPlayer->GetGameEntity());
413+
g_pGame->GetProjectileInfo()->RemoveEntityReferences(pLocalPlayer->GetGameEntity());
414414

415415
// Stop all explosions. Unfortunately this doesn't fix the crash
416416
// if a vehicle is destroyed while it explodes.
@@ -1025,7 +1025,7 @@ void CClientGame::DoPulsePostFrame()
10251025
}
10261026

10271027
auto taskManager = pLocalPlayer->GetTaskManager();
1028-
auto task = taskManager->GetActiveTask();
1028+
auto task = taskManager->GetActiveTask();
10291029
auto pVehicle = pLocalPlayer->GetOccupiedVehicle();
10301030
bool useZoneName = true;
10311031

@@ -1079,7 +1079,7 @@ void CClientGame::DoPulsePostFrame()
10791079

10801080
discordState = taskState.strState;
10811081
useZoneName = taskState.bUseZone;
1082-
}
1082+
}
10831083

10841084
if (useZoneName)
10851085
{
@@ -6140,7 +6140,6 @@ bool CClientGame::GetBirdsEnabled()
61406140
return m_bBirdsEnabled;
61416141
}
61426142

6143-
61446143
void CClientGame::SetWeaponRenderEnabled(bool enabled)
61456144
{
61466145
g_pGame->SetWeaponRenderEnabled(enabled);

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4701,7 +4701,7 @@ void CGame::SendSyncSettings(CPlayer* pPlayer)
47014701
uchar ucAllowFastSprintFix = true;
47024702
uchar ucAllowDrivebyAnimFix = true;
47034703
uchar ucAllowShotgunDamageFix = true;
4704-
const std::uint8_t multiCommandHandlerPolicy = static_cast<std::uint8_t>(m_pMainConfig->GetAllowMultiCommandHandlers());
4704+
std::uint8_t multiCommandHandlerPolicy = static_cast<std::uint8_t>(m_pMainConfig->GetAllowMultiCommandHandlers());
47054705

47064706
CSyncSettingsPacket packet(weaponTypesUsingBulletSync, ucVehExtrapolateEnabled, sVehExtrapolateBaseMs, sVehExtrapolatePercent, sVehExtrapolateMaxMs,
47074707
ucUseAltPulseOrder, ucAllowFastSprintFix, ucAllowDrivebyAnimFix, ucAllowShotgunDamageFix, multiCommandHandlerPolicy);

Server/mods/deathmatch/logic/CRegisteredCommands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool CRegisteredCommands::AddCommand(CLuaMain* pLuaMain, const char* szKey, cons
4040

4141
if (CommandExists(szKey, nullptr))
4242
{
43-
const auto policy = static_cast<MultiCommandHandlerPolicy>(g_pGame->GetConfig()->GetAllowMultiCommandHandlers());
43+
auto policy = static_cast<MultiCommandHandlerPolicy>(g_pGame->GetConfig()->GetAllowMultiCommandHandlers());
4444

4545
switch (policy)
4646
{

0 commit comments

Comments
 (0)