mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed shotbug (#80)
This commit is contained in:
parent
8e1712c744
commit
ad1ce01446
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue