mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed shotbug (#80)
This commit is contained in:
parent
edcfbc2f28
commit
b2a55766d1
|
@ -19,7 +19,10 @@ void CControls::OnReset()
|
||||||
{
|
{
|
||||||
m_LastData.m_Direction = 0;
|
m_LastData.m_Direction = 0;
|
||||||
m_LastData.m_Hook = 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_LastData.m_Jump = 0;
|
||||||
m_InputData = m_LastData;
|
m_InputData = m_LastData;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue