diff --git a/src/game/client/components/controls.cpp b/src/game/client/components/controls.cpp index 2bfb8b06e..027a67262 100644 --- a/src/game/client/components/controls.cpp +++ b/src/game/client/components/controls.cpp @@ -19,9 +19,6 @@ CControls::CControls() { mem_zero(&m_aLastData, sizeof(m_aLastData)); - m_LastDummy = 0; - m_OtherFire = 0; - mem_zero(m_aMousePos, sizeof(m_aMousePos)); mem_zero(m_aMousePosOnAction, sizeof(m_aMousePosOnAction)); mem_zero(m_aTargetPos, sizeof(m_aTargetPos)); @@ -34,7 +31,6 @@ void CControls::OnReset() for(int &AmmoCount : m_aAmmoCount) AmmoCount = 0; - m_OldMouseX = m_OldMouseY = 0.0f; m_LastSendTime = 0; } @@ -42,7 +38,6 @@ void CControls::OnReset() void CControls::ResetInput(int Dummy) { m_aLastData[Dummy].m_Direction = 0; - //m_aLastData[Dummy].m_Hook = 0; // simulate releasing the fire button if((m_aLastData[Dummy].m_Fire & 1) != 0) m_aLastData[Dummy].m_Fire++; @@ -54,11 +49,6 @@ void CControls::ResetInput(int Dummy) m_aInputDirectionRight[Dummy] = 0; } -void CControls::OnRelease() -{ - //OnReset(); -} - void CControls::OnPlayerDeath() { for(int &AmmoCount : m_aAmmoCount) diff --git a/src/game/client/components/controls.h b/src/game/client/components/controls.h index f8ce75d71..0f792df5e 100644 --- a/src/game/client/components/controls.h +++ b/src/game/client/components/controls.h @@ -18,8 +18,6 @@ public: vec2 m_aMousePos[NUM_DUMMIES]; vec2 m_aMousePosOnAction[NUM_DUMMIES]; vec2 m_aTargetPos[NUM_DUMMIES]; - float m_OldMouseX; - float m_OldMouseY; int m_aAmmoCount[NUM_WEAPONS]; @@ -29,14 +27,11 @@ public: int m_aInputDirectionLeft[NUM_DUMMIES]; int m_aInputDirectionRight[NUM_DUMMIES]; int m_aShowHookColl[NUM_DUMMIES]; - int m_LastDummy; - int m_OtherFire; CControls(); virtual int Sizeof() const override { return sizeof(*this); } virtual void OnReset() override; - virtual void OnRelease() override; virtual void OnRender() override; virtual void OnMessage(int MsgType, void *pRawMsg) override; virtual bool OnCursorMove(float x, float y, IInput::ECursorType CursorType) override;