Skip to content

Commit

Permalink
Removed unknown global
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Ritzl committed Feb 7, 2017
1 parent 471a6b5 commit f369e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludobits/m/platformer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function M.create(collision_hashes)
local proj = vmath.dot(correction, message.normal)
local comp = (message.distance - proj) * message.normal
correction = correction + comp
go.set_position(go.get_position(id) + comp)
go.set_position(go.get_position() + comp)
proj = vmath.dot(instance.velocity, message.normal)
if proj < 0 then
instance.velocity = instance.velocity - proj * message.normal
Expand Down

0 comments on commit f369e26

Please sign in to comment.