diff options
| author | oy <Tom_Adams@web.de> | 2011-01-17 12:28:37 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-01-17 12:28:37 +0100 |
| commit | 216967c3bf72ccff9d069327a5531e50f8f88b5a (patch) | |
| tree | edda4389c670ddbb9e37885a948f5231babbf496 /src/game/client/components/controls.cpp | |
| parent | 5483eb66294aabea76624659886a7c39a0758e66 (diff) | |
| download | zcatch-216967c3bf72ccff9d069327a5531e50f8f88b5a.tar.gz zcatch-216967c3bf72ccff9d069327a5531e50f8f88b5a.zip | |
release gameclient components when opening the editor. Closes #429
Diffstat (limited to 'src/game/client/components/controls.cpp')
| -rw-r--r-- | src/game/client/components/controls.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 1dd74af2..f7da46b6 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -32,6 +32,11 @@ void CControls::OnReset() m_InputDirectionRight = 0; } +void CControls::OnRelease() +{ + OnReset(); +} + void CControls::OnPlayerDeath() { m_LastData.m_WantedWeapon = m_InputData.m_WantedWeapon = 0; |