Minor style fixes

This commit is contained in:
def 2019-03-12 19:29:18 +01:00
parent 6701000931
commit bbec3b1f2f

View file

@ -984,7 +984,8 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View)
Client()->ServerBrowserUpdate();
}
vec4 Colour = pSelectedServer->m_aClients[i].m_FriendState == IFriends::FRIEND_NO ? vec4(1.0f, 1.0f, 1.0f, (i%2+1)*0.05f) :
vec4 Colour = pSelectedServer->m_aClients[i].m_FriendState == IFriends::FRIEND_NO ?
vec4(1.0f, 1.0f, 1.0f, (i%2+1)*0.05f) :
vec4(0.5f, 1.0f, 0.5f, 0.15f+(i%2+1)*0.05f);
RenderTools()->DrawUIRect(&Name, Colour, CUI::CORNER_ALL, 4.0f);
Name.VSplitLeft(5.0f, 0, &Name);
@ -1001,7 +1002,9 @@ void CMenus::RenderServerbrowserServerDetail(CUIRect View)
else if(IsRace(pSelectedServer))
{
if(pSelectedServer->m_aClients[i].m_Score == -9999 || pSelectedServer->m_aClients[i].m_Score == 0)
{
aTemp[0] = 0;
}
else
{
int Time = abs(pSelectedServer->m_aClients[i].m_Score);