fixed shotbug (#80)

This commit is contained in:
oy 2010-06-02 19:39:28 +02:00
parent edcfbc2f28
commit b2a55766d1

View file

@ -19,7 +19,10 @@ void CControls::OnReset()
{
m_LastData.m_Direction = 0;
m_LastData.m_Hook = 0;
m_LastData.m_Fire = 0;
// simulate releasing the fire button
if((m_LastData.m_Fire&1) != 0)
m_LastData.m_Fire++;
m_LastData.m_Fire &= INPUT_STATE_MASK;
m_LastData.m_Jump = 0;
m_InputData = m_LastData;