Clarifying the syntax
This commit is contained in:
parent
69f733f20a
commit
896226f67f
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user