From 5dd93bd84aa61541abe4495fa7628203666c0b38 Mon Sep 17 00:00:00 2001 From: xxsoca Date: Thu, 22 Jun 2023 22:18:33 +0200 Subject: [PATCH] gui einheit_action --- gui.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui.pl b/gui.pl index 34d96c5..d2c4c2d 100644 --- a/gui.pl +++ b/gui.pl @@ -290,7 +290,6 @@ update_controls :- process_move_unit(FromX, FromY, ToX, ToY, Controls) :- game_control(Controls), - get(FromX, selection, FX), get(FromY, selection, FY), @@ -301,7 +300,8 @@ process_move_unit(FromX, FromY, ToX, ToY, Controls) :- atom_number(FY, FY2), atom_number(TX, TX2), atom_number(TY, TY2), - einheit_move(FX2, FY2, TX2, TY2), + + einheit_action(FX2, FY2, TX2, TY2), update_controls, spielfeld.