27.10 Änderung 2
This commit is contained in:
parent
a1930fa74e
commit
1e229ad916
@ -35,7 +35,7 @@ int createWordSalad(char salad[MAX_SEARCH_FIELD_LEN][MAX_SEARCH_FIELD_LEN], unsi
|
|||||||
int x = rand() % searchFieldLen;
|
int x = rand() % searchFieldLen;
|
||||||
int y = rand() % searchFieldLen;
|
int y = rand() % searchFieldLen;
|
||||||
|
|
||||||
if (horizontal = !NULL)
|
if (horizontal)
|
||||||
{
|
{
|
||||||
if (x + wordlength > searchFieldLen) // word does not fit
|
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++)
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fits = !NULL)
|
if (fits)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < wordlength; i++)
|
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.
Loading…
x
Reference in New Issue
Block a user