fix offset in creating rooms

This commit is contained in:
lustlion 2022-03-07 04:22:10 +01:00
parent 59a21aa655
commit a8ffae726f

View File

@ -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