diff options
Diffstat (limited to 'src/engine/client/input.cpp')
| -rw-r--r-- | src/engine/client/input.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/client/input.cpp b/src/engine/client/input.cpp index c6d3f58e..195b78aa 100644 --- a/src/engine/client/input.cpp +++ b/src/engine/client/input.cpp @@ -87,7 +87,13 @@ void CInput::MouseModeRelative() int CInput::MouseDoubleClick() { - return m_ReleaseDelta < (time_freq() >> 2); + if(m_ReleaseDelta >= 0 && m_ReleaseDelta < (time_freq() >> 2)) + { + m_LastRelease = 0; + m_ReleaseDelta = -1; + return 1; + } + return 0; } void CInput::ClearKeyStates() |