fix offset in creating rooms
This commit is contained in:
parent
59a21aa655
commit
a8ffae726f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user