Update onTryMoveInto.js
This commit is contained in:
parent
7256aab393
commit
204d5a093b
|
|
@ -28,7 +28,8 @@ elements.on_try_move_into_test = {
|
|||
related: ["debug", "ash"],
|
||||
}
|
||||
|
||||
function tryMove(pixel,nx,ny,leaveBehind=undefined) {
|
||||
function tryMove(pixel,nx,ny,leaveBehind,force) {
|
||||
if (pixel.drag && !force) { return true; }
|
||||
var info = elements[pixel.element];
|
||||
var oob = outOfBounds(nx,ny);
|
||||
if (isEmpty(nx,ny,false,oob)) { // If coords is empty, move to coords
|
||||
|
|
|
|||
Loading…
Reference in New Issue