From 14a5669abf724533d704d32a3cac5d0c2764b065 Mon Sep 17 00:00:00 2001 From: Emman Mensdorf Date: Thu, 8 Feb 2024 17:11:08 +0100 Subject: [PATCH] =?UTF-8?q?Refactoring:=20Bauernumwandlung.c=20Wichtige=20?= =?UTF-8?q?includes=20erg=C3=A4nzt,=20Emman=20Mensdorf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Bauernumwandlung.c | 18 ++++++++++++++++-- src/En_Passaut.c | 3 ++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/Bauernumwandlung.c b/src/Bauernumwandlung.c index 7f05e2b..1abc9f3 100644 --- a/src/Bauernumwandlung.c +++ b/src/Bauernumwandlung.c @@ -1,10 +1,24 @@ +#include #include +#include #include -#include -#include "spieler.h" +#include "Spielstatus.h" #include "Moving.h" +#include "Spieler.h" #include "Bauer.h" +#include "Turm.h" +#include "Springer.h" +#include "Koenig.h" +#include "Dame.h" +#include "Laeufer.h" +#include "Historie.h" #include "Input.h" +#include "Bauernumwandlung.h" +#include "En_Passaut.h" +#include "Misc.h" +#include "Schachbrett.h" +#include "Speichern.h" +#include "Tutorial.h" bool ist_umwandlung_gerlaubt_Bauer(char** Brett, int startX, int startY, int endX, int endY, Player player) { if ((player == PLAYER_WHITE) && (endY == 7) && (Brett[startY][startX] == 'P')) { diff --git a/src/En_Passaut.c b/src/En_Passaut.c index 887f890..1e1a458 100644 --- a/src/En_Passaut.c +++ b/src/En_Passaut.c @@ -40,7 +40,8 @@ bool ist_En_Passaut_erlaubt_Bauer(char** Brett, int startX, int startY, int endX return false; } } + return false; + } -}