aboutsummaryrefslogtreecommitdiff
path: root/src/room_editor.lua
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-13 18:32:52 -0400
committeriamcheeseman <[email protected]>2026-03-13 18:32:52 -0400
commit6d5e3252b51b096f88945cdb77f46d1128801d1f (patch)
tree57150e9de1c01d147b1511839304040c3cc66948 /src/room_editor.lua
parent88d65e65eb92c8e086bdbb7d938bbb44522caf6f (diff)
Fix collision resolution at low fps
Diffstat (limited to 'src/room_editor.lua')
-rw-r--r--src/room_editor.lua2
1 files changed, 1 insertions, 1 deletions
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)