mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: hook collision line of other players works on yourself when you're paused
This commit is contained in:
parent
af66d26bd5
commit
3e63993333
|
@ -1324,7 +1324,7 @@ int CGameClient::IntersectCharacter(vec2 HookPos, vec2 NewPos, vec2& NewPos2, in
|
||||||
|
|
||||||
vec2 Position = mix(vec2(Prev.m_X, Prev.m_Y), vec2(Player.m_X, Player.m_Y), Client()->IntraGameTick());
|
vec2 Position = mix(vec2(Prev.m_X, Prev.m_Y), vec2(Player.m_X, Player.m_Y), Client()->IntraGameTick());
|
||||||
|
|
||||||
if (!cData.m_Active || cData.m_Team == TEAM_SPECTATORS || i == ownID || !m_Teams.SameTeam(i, ownID))
|
if (!cData.m_Active || i == ownID || !m_Teams.SameTeam(i, ownID))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
vec2 ClosestPoint = closest_point_on_line(HookPos, NewPos, Position);
|
vec2 ClosestPoint = closest_point_on_line(HookPos, NewPos, Position);
|
||||||
|
|
Loading…
Reference in a new issue