mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
do not dragger beam snap, if the target is out of reach
This commit is contained in:
parent
cc3ea78fcd
commit
82a0354f97
|
@ -87,7 +87,7 @@ void CDraggerBeam::Snap(int SnappingClient)
|
|||
}
|
||||
// Only players with the dragger beam in their field of view or who want to see everything will receive the snap
|
||||
vec2 TargetPos = vec2(pTarget->m_Pos.x, pTarget->m_Pos.y);
|
||||
if(NetworkClippedLine(SnappingClient, m_Pos, TargetPos))
|
||||
if(distance(pTarget->m_Pos, m_Pos) >= g_Config.m_SvDraggerRange || NetworkClippedLine(SnappingClient, m_Pos, TargetPos))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue