Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scripts/grid_place_meeting/grid_place_meeting.gml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
var _object = argument0;
var _grid = argument1;

var _top_right = _grid[# (_object.bbox_right-1) div CELL_WIDTH, _object.bbox_top div CELL_HEIGHT] == VOID;
var _top_left = _grid[# _object.bbox_left div CELL_WIDTH, _object.bbox_top div CELL_HEIGHT] == VOID;
var _bottom_right = _grid[# (_object.bbox_right-1) div CELL_WIDTH, (_object.bbox_bottom-1) div CELL_HEIGHT] == VOID;
var _bottom_left = _grid[# _object.bbox_left div CELL_WIDTH, (_object.bbox_bottom-1) div CELL_HEIGHT] == VOID;
var _top_right = _grid[# (ceil(_object.bbox_right)-1) div CELL_WIDTH, floor(_object.bbox_top) div CELL_HEIGHT] == VOID;
var _top_left = _grid[# floor(_object.bbox_left) div CELL_WIDTH, floor(_object.bbox_top) div CELL_HEIGHT] == VOID;
var _bottom_right = _grid[# (ceil(_object.bbox_right)-1) div CELL_WIDTH, (ceil(_object.bbox_bottom)-1) div CELL_HEIGHT] == VOID;
var _bottom_left = _grid[# floor(_object.bbox_left) div CELL_WIDTH, (ceil(_object.bbox_bottom)-1) div CELL_HEIGHT] == VOID;


return _top_right || _top_left || _bottom_right || _bottom_left;
return _top_right || _top_left || _bottom_right || _bottom_left;