21.10
This commit is contained in:
parent
db1e31f237
commit
6f3446fa8d
@ -42,9 +42,12 @@ int main(int argc, char *argv[])
|
||||
// error message if some words couldn't be placed
|
||||
if (wordCount != placedWords)
|
||||
{
|
||||
fprintf(stderr, "Error: %d out of %d were placed", placedWords, wordCount);
|
||||
fprintf(stderr, "Error: %u out of %u were placed\n", placedWords, wordCount);
|
||||
}
|
||||
else
|
||||
{
|
||||
startGame(wordSalad, SALAD_SIZE, words, placedWords, 800);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -52,7 +55,6 @@ int main(int argc, char *argv[])
|
||||
fprintf(stderr, "Could not open file %s for reading ...\n", argv[1]);
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
startGame(words)
|
||||
}
|
||||
|
||||
return exitCode;
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user