Skip to content

Commit

Permalink
fix more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Sep 11, 2024
1 parent 337d1dc commit 27d8adb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2083,8 +2083,7 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
// str_format(aBufMsg, sizeof(aBufMsg), "/timeout %s", m_aTimeoutCodes[Conn]);
//else
// str_format(aBufMsg, sizeof(aBufMsg), "/mc;timeout %s", m_aTimeoutCodes[Conn]);
str_format(aBufMsg, sizeof(aBufMsg), "/mc");

str_copy(aBufMsg, "/mc");
if(g_Config.m_ClRunOnJoin[0] && !g_Config.m_ClRunOnJoinConsole)
{
str_format(aBuf, sizeof(aBuf), ";%s", g_Config.m_ClRunOnJoin);
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/components/menus_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3545,7 +3545,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)
char aBuf[64];
str_format(aBuf, sizeof(aBuf), "%s: %i%%", "Predicted Alpha", g_Config.m_ClPredGhostsAlpha);
Ui()->DoLabel(&Label, aBuf, 14.0f, TEXTALIGN_LEFT);
g_Config.m_ClPredGhostsAlpha = (int)(Ui()->DoScrollbarH(&g_Config.m_ClPredGhostsAlpha, &Button, (g_Config.m_ClPredGhostsAlpha) / 50.0f) * 50.0f);
g_Config.m_ClPredGhostsAlpha = (int)(Ui()->DoScrollbarH(&g_Config.m_ClPredGhostsAlpha, &Button, (g_Config.m_ClPredGhostsAlpha) / 100.0f) * 100.0f);
}
{
CUIRect Button, Label;
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/components/nameplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void CNamePlates::OnRender()
}
}
}
if(!m_pClient->m_Snap.m_aCharacters[i].m_Active)
if(m_pClient->m_Snap.m_aCharacters[i].m_Active)
{
// Only render nameplates for active characters
const vec2 RenderPos = m_pClient->m_aClients[i].m_RenderPos;
Expand Down

0 comments on commit 27d8adb

Please sign in to comment.