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 {