mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix prediction of non-grabbed hook
This commit is contained in:
parent
b113b70ec6
commit
cf8c8534f1
|
@ -1153,7 +1153,7 @@ void CCharacter::Read(CNetObj_Character *pChar, CNetObj_DDNetCharacter *pExtende
|
|||
mem_zero(&m_Input, sizeof(m_Input));
|
||||
mem_zero(&m_SavedInput, sizeof(m_SavedInput));
|
||||
m_Input.m_Direction = m_SavedInput.m_Direction = m_Core.m_Direction;
|
||||
m_Input.m_Hook = m_SavedInput.m_Hook = (m_Core.m_HookState == HOOK_GRABBED);
|
||||
m_Input.m_Hook = m_SavedInput.m_Hook = (m_Core.m_HookState != HOOK_IDLE);
|
||||
m_Input.m_TargetX = cosf(pChar->m_Angle/256.0f);
|
||||
m_Input.m_TargetY = sinf(pChar->m_Angle/256.0f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue