mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Rename variable w
to Weapon
This commit is contained in:
parent
2904c4a2e8
commit
f94053bd66
|
@ -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_HAMMER &&
|
||||||
m_pClient->m_Snap.m_pLocalCharacter->m_Weapon != WEAPON_NINJA)
|
m_pClient->m_Snap.m_pLocalCharacter->m_Weapon != WEAPON_NINJA)
|
||||||
{
|
{
|
||||||
int w;
|
int Weapon;
|
||||||
for(w = WEAPON_LASER; w > WEAPON_GUN; w--)
|
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;
|
continue;
|
||||||
if(m_aAmmoCount[w] > 0)
|
if(m_aAmmoCount[Weapon] > 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(w != m_pClient->m_Snap.m_pLocalCharacter->m_Weapon)
|
if(Weapon != m_pClient->m_Snap.m_pLocalCharacter->m_Weapon)
|
||||||
m_aInputData[g_Config.m_ClDummy].m_WantedWeapon = w + 1;
|
m_aInputData[g_Config.m_ClDummy].m_WantedWeapon = Weapon + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue