about summary refs log tree commit diff
path: root/src/game/client/components/controls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/controls.cpp')
-rw-r--r--src/game/client/components/controls.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp
index 7b3f4716..859bb471 100644
--- a/src/game/client/components/controls.cpp
+++ b/src/game/client/components/controls.cpp
@@ -30,6 +30,11 @@ void CControls::OnReset()
 	m_InputDirectionRight = 0;
 }
 
+void CControls::OnPlayerDeath()
+{
+	m_LastData.m_WantedWeapon = m_InputData.m_WantedWeapon = 0;
+}
+
 static void ConKeyInputState(IConsole::IResult *pResult, void *pUserData)
 {
 	((int *)pUserData)[0] = pResult->GetInteger(0);