From a8ffae726f12a88e6c78646a992b86e126f925a0 Mon Sep 17 00:00:00 2001 From: lustlion Date: Mon, 7 Mar 2022 04:22:10 +0100 Subject: [PATCH] fix offset in creating rooms --- code/editor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/editor.lua b/code/editor.lua index 99db961..63334d5 100644 --- a/code/editor.lua +++ b/code/editor.lua @@ -190,7 +190,7 @@ function doEditorEdit() end end if #editor.room_points == 2 then - table.insert(LoadedObjects.Rooms, Collision:new(r[1].x,r[1].y,r[2].x,r[2].y)) + table.insert(LoadedObjects.Rooms, Collision:new(r[1].x-tile_properties.width,r[1].y-tile_properties.height,r[2].x,r[2].y)) editor.room_points = {} end if editor.room_mode == "delete" then