Merge pull request #4 from timakro/pr_teleport_gun

Fix teleport rifle "backtracking" logic, now pretty sure about this
This commit is contained in:
Edgar 2018-07-15 23:36:23 +02:00 committed by GitHub
commit b1ad69633f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ void CLaser::DoBounce()
if(pHit)
Found = GetNearestAirPosPlayer(pHit->m_Pos, &PossiblePos);
else
Found = GetNearestAirPos(Coltile, m_Pos, &PossiblePos);
Found = GetNearestAirPos(m_Pos, m_From, &PossiblePos);
if (Found && PossiblePos)
{