diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-11-29 11:28:25 +0100 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-11-29 11:28:25 +0100 |
commit | 42b950af22d8776964ebacac1739043aa32bc597 (patch) | |
tree | c1dc13c9f55c0e35ecc1f77377b519b97db2bab5 /pacmine/gamestate.lua | |
parent | 86653459329318ee91f19e1d7c2bd413c4b49c43 (diff) |
Fix rounding issue with the collision detection that could cause problems with the portals
Diffstat (limited to 'pacmine/gamestate.lua')
-rwxr-xr-x | pacmine/gamestate.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pacmine/gamestate.lua b/pacmine/gamestate.lua index 9524e83..d2424b4 100755 --- a/pacmine/gamestate.lua +++ b/pacmine/gamestate.lua @@ -270,7 +270,7 @@ local function on_player_gamestep(player, gameid) {x=-0.5,y=0.5,z=-0.5}, } for _,pos in pairs(positions) do - pos = vector.add(player_pos, pos) + pos = vector.round(vector.add(player_pos, pos)) local node = minetest.get_node(pos) local nodedef = minetest.registered_nodes[node.name] |