Browse Source

bugfix, Anton Lohrey

remotes/origin/Läufer-fertig,-Hendrik-Voß
fdai7492 11 months ago
parent
commit
eada59627e
  1. 4
      src/Koenig.c

4
src/Koenig.c

@ -262,8 +262,8 @@ bool istzugerlaubt_Koenig(char** Brett, int startX, int startY, int endX, int en
void bewegeKoenig(char** Brett, int startX, int startY, int endX, int endY, Player player, Spielstatus* status) {
if (istzugerlaubt_Koenig(Brett, startX, startY, endX, endY, player)) {
char Koenig = player == PLAYER_WHITE ? 'K' : 'k';
Brett[endY][endX] = Koenig;
char koenig = player == PLAYER_WHITE ? 'K' : 'k';
Brett[endY][endX] = koenig;
Brett[startY][startX] = ' ';
if (player == PLAYER_WHITE) {

Loading…
Cancel
Save