Clarifying the syntax

This commit is contained in:
Valentin Moguérou 2021-10-06 21:13:55 +02:00
parent 69f733f20a
commit 896226f67f

View File

@ -203,8 +203,12 @@ void generate(route *rt)
{
directions *dirs = init_directions(rt);
for (int i=0; i < RANDINT(1, rt->width*rt->width) && evaluate_directions(dirs); i++)
for (int i=0; i < RANDINT(1, rt->width*rt->width); i++)
{
if (!evaluate_directions(dirs))
{
break;
}
push_choose(rt, dirs);
}
}