From 6d5e3252b51b096f88945cdb77f46d1128801d1f Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Fri, 13 Mar 2026 18:32:52 -0400 Subject: Fix collision resolution at low fps --- src/room_editor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/room_editor.lua') diff --git a/src/room_editor.lua b/src/room_editor.lua index 1aee150..e13bb69 100644 --- a/src/room_editor.lua +++ b/src/room_editor.lua @@ -135,7 +135,7 @@ end local function get_snapped_to_grid(room_editor, x, y) if room_editor.entity_snap then - return snap(x, TILESIZE), snap(y, TILESIZE) + return snap(x, TILESIZE/4), snap(y, TILESIZE/4) else -- Still snap to the pixel cause yes return round(x), round(y) -- cgit v1.3-2-g0d8e