diff options
| author | oy <Tom_Adams@web.de> | 2010-06-03 01:39:28 +0800 |
|---|---|---|
| committer | SushiTee <weichel.sascha@gmail.com> | 2010-06-03 02:57:46 +0800 |
| commit | ad1ce014469acd56caab6c74d04474e029952193 (patch) | |
| tree | 1407a0f006417cf561bf515d70bad13f32b83408 /src/game/client/components/controls.cpp | |
| parent | 8e1712c744a6641dbe79f250719531c4036cbda9 (diff) | |
| download | zcatch-ad1ce014469acd56caab6c74d04474e029952193.tar.gz zcatch-ad1ce014469acd56caab6c74d04474e029952193.zip | |
fixed shotbug (#80)
Diffstat (limited to 'src/game/client/components/controls.cpp')
| -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; |