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