From d9ac9f27e181c5fd1d55c6a26260811d3b5954d0 Mon Sep 17 00:00:00 2001 From: sengpielto106561 Date: Wed, 28 Oct 2026 16:44:34 +0100 Subject: [PATCH] added forgotten --- Startcode/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Startcode/main.c b/Startcode/main.c index 9957d65..892fa61 100644 --- a/Startcode/main.c +++ b/Startcode/main.c @@ -1,5 +1,6 @@ #include #include +#include #include "input.h" #include "game.h" #include "graphicalGame.h" @@ -77,14 +78,14 @@ int main(int argc, char *argv[]) // Start the game if successful // error message if some words couldn't be placed - int check = checkSalad(char words[][MAX_WORD_LEN], char wordSalad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], int placedWords, int wordCount); + int check = checkSalad(words, wordSalad, placedWords, wordCount); //Fehlerfall if(check != 0){ fprintf(stderr, "Not all words could be placed!\n"); exitCode = EXIT_FAILURE; } //keine Ahnung wiegroß pixelSize sein soll - startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords, MAX_SEARCH_FIELD_LEN * 20); + startGame(wordSalad, MAX_SEARCH_FIELD_LEN, words, placedWords, MAX_SEARCH_FIELD_LEN * SALAD_SIZE); } else {