From 820cd16c344648334f9afb9e54e4186f79da4175 Mon Sep 17 00:00:00 2001 From: nheir Date: Tue, 27 Nov 2018 22:10:10 +0100 Subject: [PATCH] wrong first colomn --- src/game/client/components/spectator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/spectator.cpp b/src/game/client/components/spectator.cpp index ceed10039..2ec22a717 100644 --- a/src/game/client/components/spectator.cpp +++ b/src/game/client/components/spectator.cpp @@ -339,11 +339,12 @@ void CSpectator::OnRender() m_pClient->m_aClients[m_pClient->m_LocalClientID].m_Team != m_pClient->m_aClients[i].m_Team || i == m_pClient->m_LocalClientID))) continue; - if(Count++%ColumnSize == 0) + if(Count != 0 && Count%ColumnSize == 0) { x += 290.0f; y = StartY; } + Count++; if(m_pClient->m_Snap.m_SpecInfo.m_SpecMode == SPEC_PLAYER && m_pClient->m_Snap.m_SpecInfo.m_SpectatorID == i) {