27.10 Änderung 2

This commit is contained in:
Giorgi Kesidis 2025-10-27 19:50:18 +01:00
parent a1930fa74e
commit 1e229ad916
6 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
int x = rand() % searchFieldLen;
int y = rand() % searchFieldLen;
if (horizontal = !NULL)
if (horizontal)
{
if (x + wordlength > searchFieldLen) // word does not fit
{
@ -53,7 +53,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
}
}
if (fits = !NULL)
if (fits)
{
for (int i = 0; i < wordlength; i++)
{
@ -81,7 +81,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
break;
}
}
if (fits = !NULL)
if (fits)
{
for (int i = 0; i < wordlength; i++)
{

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.