From a3a4d4f5192e4063dda300084c63757a2be4157e Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 15 Jul 2018 23:33:49 +0200 Subject: [PATCH] Fix teleport rifle "backtracking" logic, now pretty sure about this --- src/game/server/entities/laser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/entities/laser.cpp b/src/game/server/entities/laser.cpp index 6de94e68d..b9ed5a479 100644 --- a/src/game/server/entities/laser.cpp +++ b/src/game/server/entities/laser.cpp @@ -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) {