X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Fai.c;h=7efacf240293c17d9cc06f96e910ffccf75401c0;hb=89c4ab4e0d6d7bb9d51d6714afae52603b465fc0;hp=aee8e738de50e245a40a057e513753723ba13eaf;hpb=75b0ee910d9a50de67e77ba40e877f9c8dabdd40;p=plomrogue diff --git a/src/ai.c b/src/ai.c index aee8e73..7efacf2 100644 --- a/src/ai.c +++ b/src/ai.c @@ -45,8 +45,7 @@ static void clockwise_path(char ** path_ptr) for (; i < len; i++) { uint8_t next_i = i + 1; - if ( next_i == len - || old_char != path[next_i]) + if (next_i == len || old_char != path[next_i]) { break; }