Template
27.10 änderung nach test
This commit is contained in:
@@ -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 = 1)
|
||||
if (horizontal = !NULL)
|
||||
{
|
||||
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 = 1)
|
||||
if (fits = !NULL)
|
||||
{
|
||||
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 = 1)
|
||||
if (fits = !NULL)
|
||||
{
|
||||
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.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user