From f94053bd66e4816232fe68442a11eded236051ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Sun, 2 Jun 2024 22:08:08 +0200 Subject: [PATCH] Rename variable `w` to `Weapon` --- src/game/client/components/controls.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 54fca856c..0aed43552 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -336,16 +336,16 @@ void CControls::OnRender() m_pClient->m_Snap.m_pLocalCharacter->m_Weapon != WEAPON_HAMMER && m_pClient->m_Snap.m_pLocalCharacter->m_Weapon != WEAPON_NINJA) { - int w; - for(w = WEAPON_LASER; w > WEAPON_GUN; w--) + int Weapon; + for(Weapon = WEAPON_LASER; Weapon > WEAPON_GUN; Weapon--) { - if(w == m_pClient->m_Snap.m_pLocalCharacter->m_Weapon) + if(Weapon == m_pClient->m_Snap.m_pLocalCharacter->m_Weapon) continue; - if(m_aAmmoCount[w] > 0) + if(m_aAmmoCount[Weapon] > 0) break; } - if(w != m_pClient->m_Snap.m_pLocalCharacter->m_Weapon) - m_aInputData[g_Config.m_ClDummy].m_WantedWeapon = w + 1; + if(Weapon != m_pClient->m_Snap.m_pLocalCharacter->m_Weapon) + m_aInputData[g_Config.m_ClDummy].m_WantedWeapon = Weapon + 1; } }