From a1680b30f72e64975459c675e496cd1dc7a4365c Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 19 Nov 2022 17:32:47 -0600 Subject: [PATCH] Update menus_demo.cpp fix clang style --- src/game/client/components/menus_demo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_demo.cpp b/src/game/client/components/menus_demo.cpp index 287f0463a..b2f32f50d 100644 --- a/src/game/client/components/menus_demo.cpp +++ b/src/game/client/components/menus_demo.cpp @@ -546,7 +546,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) ButtonBar.VSplitLeft(ButtonbarHeight, &Button, &ButtonBar); static CButtonContainer s_OneMarkerBackButton; if(DoButton_FontIcon(&s_OneMarkerBackButton, "\xEF\x81\x88", 0, &Button, IGraphics::CORNER_ALL)) - for(int i = pInfo->m_NumTimelineMarkers-1; i >= 0; i--) + for(int i = pInfo->m_NumTimelineMarkers - 1; i >= 0; i--) { if((pInfo->m_aTimelineMarkers[i] - pInfo->m_FirstTick) < CurrentTick) { @@ -563,7 +563,7 @@ void CMenus::RenderDemoPlayer(CUIRect MainView) if(DoButton_FontIcon(&s_OneMarkerForwardButton, "\xEF\x81\x91", 0, &Button, IGraphics::CORNER_ALL)) for(int i = 0; i < pInfo->m_NumTimelineMarkers; i++) { - if((pInfo->m_aTimelineMarkers[i] - pInfo->m_FirstTick)-2 > CurrentTick) + if((pInfo->m_aTimelineMarkers[i] - pInfo->m_FirstTick) - 2 > CurrentTick) { DemoPlayer()->SeekPercent(static_cast(pInfo->m_aTimelineMarkers[i] - pInfo->m_FirstTick) / static_cast(TotalTicks)); break;