This commit is contained in:
Filip Chochol 2026-05-08 11:11:50 +02:00
parent 876df59231
commit 257bf01c5c

View File

@ -62,7 +62,7 @@ int step_state(struct state* st) {
for (int j = 0; j < FOOD_COUNT; j++) { for (int j = 0; j < FOOD_COUNT; j++) {
if (st->foodx[j] >= 0) zostava_jedlo = 1; if (st->foodx[j] >= 0) zostava_jedlo = 1;
} }
if (!zostava_jedlo) return END_FOOD; if (!zostava_jedlo) return END_FOOD;
return END_CONTINUE; return END_CONTINUE;
} }