Browse Source

figure movement: bug fix rowDiff

feat-figureMovement
JD 4 years ago
parent
commit
52ece296a7
  1. 2
      fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java

2
fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java

@ -16,7 +16,7 @@ public class Figure
return false;
}
if ((src - dst) / fieldLength > 0 && (src - dst) % fieldLength > 0) // diagonal nach links oben
if (src / fieldLength - dst / fieldLength > 0 && src % fieldLength - dst % fieldLength > 0) // diagonal nach links oben
{
return false;
}

Loading…
Cancel
Save