X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fothello.c;h=dd92cfb0cbf51900afcff9bebc9bef7c254ba56a;hp=12470ee23594486a59a00e6195fa93be463371ac;hb=b5cb4c1247e32f76b64166ac0b776de776374631;hpb=05e27bbf06669a1cc96112c9b133d95120b23a33 diff --git a/lib/othello.c b/lib/othello.c index 12470ee..dd92cfb 100644 --- a/lib/othello.c +++ b/lib/othello.c @@ -188,7 +188,7 @@ static unsigned int reverse_one_direction(int y, int x, int direction, unsigned direction_to_coordinates(direction, &moving_y, &moving_x); while (true) { if (!is_valid_coordinates(moving_y, moving_x) || is_box_type(moving_y, moving_x, pawn_array, empty)) { - return 0; + return 0; } if (is_box_type(moving_y, moving_x, pawn_array, current_player)) { break;