From 37bd97172367202af4c4fad86b0a358db3095786 Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Sun, 25 Jun 2023 10:53:25 +0200 Subject: [PATCH] =?UTF-8?q?Abfangen=20ung=C3=BCltiger=20Z=C3=BCge,=20damit?= =?UTF-8?q?=20der=20Button=20danach=20nicht=20unklickbar=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gui.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gui.pl b/gui.pl index 905e2e9..d9f9afb 100644 --- a/gui.pl +++ b/gui.pl @@ -302,7 +302,12 @@ process_move_unit(FromX, FromY, ToX, ToY, Controls) :- atom_number(TX, TX2), atom_number(TY, TY2), - einheit_action(FX2, FY2, TX2, TY2), + (% Abfangen, dass ein Zug ungültig ist + einheit_action(FX2, FY2, TX2, TY2) + ; + true + ), + update_controls, spielfeld.