changed logic movetoborder
This commit is contained in:
parent
a7aa7c41bc
commit
e7566e6360
@ -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