diff options
| author | oy <Tom_Adams@web.de> | 2010-06-02 19:39:28 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-06-02 19:39:28 +0200 |
| commit | b2a55766d1d1696c80bad39f8651e8029a6a0d77 (patch) | |
| tree | e1e73792e42f89d5f02811572206e4250b25ecc3 | |
| parent | edcfbc2f28b59ae430c5c2d2d33fb78e747ce838 (diff) | |
| download | zcatch-b2a55766d1d1696c80bad39f8651e8029a6a0d77.tar.gz zcatch-b2a55766d1d1696c80bad39f8651e8029a6a0d77.zip | |
fixed shotbug (#80)
| -rw-r--r-- | src/game/client/components/controls.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 0b4918b2..7b3f4716 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -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; |