mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
commit
1377af0921
|
@ -365,7 +365,7 @@ void CCharacterCore::Tick(bool UseInput, bool DoDeferredTick)
|
||||||
// release_hooked();
|
// release_hooked();
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't do this hook rutine when we are hook to a player
|
// don't do this hook routine when we are already hooked to a player
|
||||||
if(m_HookedPlayer == -1 && distance(m_HookPos, m_Pos) > 46.0f)
|
if(m_HookedPlayer == -1 && distance(m_HookPos, m_Pos) > 46.0f)
|
||||||
{
|
{
|
||||||
vec2 HookVel = normalize(m_HookPos - m_Pos) * m_Tuning.m_HookDragAccel;
|
vec2 HookVel = normalize(m_HookPos - m_Pos) * m_Tuning.m_HookDragAccel;
|
||||||
|
|
Loading…
Reference in a new issue