Fix: hook collision line of other players works on yourself when you're paused

This commit is contained in:
def 2014-04-10 20:33:26 +02:00
parent af66d26bd5
commit 3e63993333

View file

@ -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);