Fixed a little silly
This commit is contained in:
parent
22356ca529
commit
e31258e26c
3 changed files with 5 additions and 4 deletions
4
logic.c
4
logic.c
|
|
@ -72,7 +72,7 @@ void calcWins(
|
|||
// Now the rest of the wins
|
||||
// First connect 2
|
||||
for(
|
||||
columnsint_t i = top( column - 1, 0 );
|
||||
columnsint_t i = clipped_subtract( column, 1 );
|
||||
i < bottom( column + 1, board.columns - 1 );
|
||||
i++
|
||||
){
|
||||
|
|
@ -101,7 +101,7 @@ void calcWins(
|
|||
}
|
||||
// Then stitch the twos together and count
|
||||
for(
|
||||
columnsint_t i = top( column - 3, 0 );
|
||||
columnsint_t i = clipped_subtract( column, 3 );
|
||||
i < bottom( column + 1, board.columns - 3 );
|
||||
i++
|
||||
){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue