don't accidentally turn once locked in on food

This commit is contained in:
ethan merchant 2024-11-25 23:46:28 -05:00
parent 7e63215827
commit fc082d293b

View file

@ -124,7 +124,7 @@ static class Mono
XYZi next_pos = snake[0] + Rig.new_dir;
bool neck_break = next_pos == snake[1];
if (!neck_break)
if (!neck_break && !food_next.state)
{
snake_dir = Rig.new_dir;
}