fixed logic to border
This commit is contained in:
parent
91bc8d454c
commit
aac002fb3a
@ -30,8 +30,8 @@ public class MoveToBorder : AbstractStrategy
|
||||
ObjectParameters? objParams = GetObjectParameters;
|
||||
if (objParams == null)
|
||||
return false;
|
||||
return objParams.RightBorder + GetStep() >= FieldWidth &&
|
||||
objParams.DownBorder + GetStep() >= FieldHeight ;
|
||||
return objParams.RightBorder + GetStep() > FieldWidth &&
|
||||
objParams.DownBorder + GetStep() > FieldHeight ;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user