diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 7950763c7..87df1a291 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -3820,6 +3820,7 @@ void CClient::UpdateAndSwap() Input()->Update(); Graphics()->Swap(); Graphics()->Clear(0, 0, 0); + m_GlobalTime = (time_get() - m_GlobalStartTime) / (float)time_freq(); } void CClient::ServerBrowserUpdate() diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 031ebc9c7..a4d290335 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -2231,7 +2231,7 @@ void CMenus::RenderBackground() Graphics()->QuadsBegin(); Graphics()->SetColor(0.0f, 0.0f, 0.0f, 0.045f); const float Size = 15.0f; - const float OffsetTime = std::fmod(LocalTime() * 0.15f, 2.0f); + const float OffsetTime = std::fmod(Client()->GlobalTime() * 0.15f, 2.0f); IGraphics::CQuadItem aCheckerItems[64]; size_t NumCheckerItems = 0; for(int y = -2; y < (int)(ScreenWidth / Size); y++)