mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove unnecessary use of this
The same variable `m_HookHitDisabled` is also being accessed without `this`.
This commit is contained in:
parent
998adfcefc
commit
660c1de8f2
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue