Round in line.passedi

master
Beha 2017-04-07 17:29:13 -04:00
parent a890f0b393
commit 95baa057db
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ function lmt:passedi()
choosefit[i] = scalar(vector.normalize(vector.subtract(choose[i], self.start)), dir)
end
p = choose[get_max_coord(choosefit)]
if p and vector.distance(self.start, p) <= len then
if p and vector.distance(self.start, p) <= math.floor(len + 0.5) then
return vector.new(p)
end
end