Skip to content

Commit 49c916e

Browse files
committed
fix outdated code
1 parent 87ae747 commit 49c916e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Client/mods/deathmatch/logic/CClientGame.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5456,11 +5456,6 @@ void CClientGame::ResetMapInfo()
54565456
// Players
54575457
m_pPlayerManager->ResetAll();
54585458

5459-
// Reset Frozen Time
5460-
g_pGame->GetClock()->ResetTimeFrozen();
5461-
g_pGame->GetSettings()->ResetVolumetricShadows();
5462-
g_pGame->GetSettings()->ResetDynamicPedShadows();
5463-
54645459
// Disable the change of any player stats
54655460
g_pMultiplayer->SetLocalStatsStatic(true);
54665461

@@ -6888,6 +6883,12 @@ void CClientGame::ResetWorldProperties(const ResetWorldPropsInfo& resetPropsInfo
68886883

68896884
// Reset volumetric shadows
68906885
g_pGame->GetSettings()->ResetVolumetricShadows();
6886+
6887+
// Reset Frozen Time
6888+
g_pGame->GetClock()->ResetTimeFrozen();
6889+
6890+
// Reset DynamicPedShadows
6891+
g_pGame->GetSettings()->ResetDynamicPedShadows();
68916892
}
68926893

68936894
void CClientGame::OnWindowFocusChange(bool state)

0 commit comments

Comments
 (0)