mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed laser snapping
This commit is contained in:
parent
a76759eeb5
commit
2fff744724
|
@ -145,9 +145,9 @@ void CLaser::Snap(int SnappingClient)
|
|||
CCharacter * OwnerChar = 0;
|
||||
if(m_Owner >= 0)
|
||||
OwnerChar = GameServer()->GetPlayerChar(m_Owner);
|
||||
if(!SnappingChar || !OwnerChar)
|
||||
if(!OwnerChar)
|
||||
return;
|
||||
if(SnappingChar->IsAlive() && OwnerChar->IsAlive() && SnappingChar->Team() != OwnerChar->Team())
|
||||
if(SnappingChar && !SnappingChar->CanCollide(m_Owner))
|
||||
return;
|
||||
CNetObj_Laser *pObj = static_cast<CNetObj_Laser *>(Server()->SnapNewItem(NETOBJTYPE_LASER, m_ID, sizeof(CNetObj_Laser)));
|
||||
if(!pObj)
|
||||
|
|
Loading…
Reference in a new issue