Skip to content

Commit

Permalink
Update collision.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozzaxia1311 committed Nov 26, 2020
1 parent 529ad99 commit c02923f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/collision.lua
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ function collision.generalCollision(self, noSlope)
if yStep > yTolerance then
yStep = 1
xStep = math.min(xStep + 1, dst)
yTolerance = math.ceil(dst - xStep) * collision.maxSlope
else
yStep = yStep + 1
end
Expand Down

0 comments on commit c02923f

Please sign in to comment.