three commit

This commit is contained in:
Salikh 2023-12-30 09:32:24 +04:00
parent d37d252d53
commit 5523780ec8

View File

@ -4,7 +4,6 @@ public class MoveToCenter extends AbstractStrategy{
var objParams = getObjectParameters.get();
if(objParams == null)
return false;
return objParams.getObjectMiddleHorizontal() <= getFieldWidth() / 2 &&
objParams.getObjectMiddleHorizontal()+GetStep() >= getFieldWidth() / 2 &&
objParams.getObjectMiddleVertical() <= getFieldHeight() / 2 &&