From 660c1de8f29e4ef77f5ce1442cf1a4ce0a147700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 9 Jul 2024 22:22:55 +0200 Subject: [PATCH] Remove unnecessary use of `this` The same variable `m_HookHitDisabled` is also being accessed without `this`. --- src/game/gamecore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/gamecore.cpp b/src/game/gamecore.cpp index 2481364ed..9bf36d98f 100644 --- a/src/game/gamecore.cpp +++ b/src/game/gamecore.cpp @@ -344,7 +344,7 @@ void CCharacterCore::Tick(bool UseInput, bool DoDeferredTick) } // Check against other players first - if(!this->m_HookHitDisabled && m_pWorld && m_Tuning.m_PlayerHooking && (m_HookState == HOOK_FLYING || !m_NewHook)) + if(!m_HookHitDisabled && m_pWorld && m_Tuning.m_PlayerHooking && (m_HookState == HOOK_FLYING || !m_NewHook)) { float Distance = 0.0f; for(int i = 0; i < MAX_CLIENTS; i++)