From 52ece296a7d4c204fdd8843c37be7a49c912a4f5 Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Fri, 15 Jan 2021 17:33:13 +0100 Subject: [PATCH] figure movement: bug fix rowDiff --- fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java b/fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java index acb0778..9e6444e 100644 --- a/fh.fd.ci.client/src/main/java/de/fd/fh/Figure.java +++ b/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; }