don't accidentally turn once locked in on food
This commit is contained in:
parent
7e63215827
commit
fc082d293b
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ static class Mono
|
||||||
|
|
||||||
XYZi next_pos = snake[0] + Rig.new_dir;
|
XYZi next_pos = snake[0] + Rig.new_dir;
|
||||||
bool neck_break = next_pos == snake[1];
|
bool neck_break = next_pos == snake[1];
|
||||||
if (!neck_break)
|
if (!neck_break && !food_next.state)
|
||||||
{
|
{
|
||||||
snake_dir = Rig.new_dir;
|
snake_dir = Rig.new_dir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue