[Fixed] Warning C4805

Warning C4805: '!=' : unsafe mix of type 'int' and type 'bool' in operation
This commit is contained in:
CookieMichal 2014-07-09 00:12:32 +02:00
parent 93ef86e1cc
commit 3274fca115

View file

@ -367,7 +367,7 @@ void CControls::OnRender()
if( !AimPressed )
{
m_InputData[g_Config.m_ClDummy].m_Fire ++;
if( m_InputData[g_Config.m_ClDummy].m_Fire % 2 != AimPressed )
if( (bool)(m_InputData[g_Config.m_ClDummy].m_Fire % 2) != AimPressed )
m_InputData[g_Config.m_ClDummy].m_Fire ++;
FireWasPressed = true;
}