commit - d0e138e7af3d0d8940797a6fb7b95cc8ff2f7b98
commit + c56ce351b9b0d79f7755c53b5be4ed776bb1508a
blob - 0bc953eba9d593419881afaab76221ad6840f740
blob + e7304326589dfd849710f4ffe096dc86f02c2ee4
--- FICS/movecheck.c
+++ FICS/movecheck.c
}
-PUBLIC int NextPieceLoop(board_t b, int *f, int *r, int color)
+PUBLIC int
+NextPieceLoop(board_t b, int *f, int *r, int color)
{
- while (1) {
- (*r) = (*r) + 1;
- if (*r > 7) {
- *r = 0;
- *f = *f + 1;
- if (*f > 7)
- break;
- }
- if ((b[*f][*r] != NOPIECE) && iscolor(b[*f][*r], color))
- return 1;
- }
- return 0;
+ while (1) {
+ (*r) = (*r) + 1;
+
+ if (*r > 7) {
+ *r = 0;
+ *f = *f + 1;
+
+ if (*f > 7)
+ break;
+ }
+
+ if ((b[*f][*r] != NOPIECE) && iscolor(b[*f][*r], color))
+ return 1;
+ }
+
+ return 0;
}
-PUBLIC int InitPieceLoop(board_t b, int *f, int *r, int color)
+PUBLIC int
+InitPieceLoop(board_t b, int *f, int *r, int color)
{
- *f = 0;
- *r = -1;
- return 1;
+ *f = 0;
+ *r = -1;
+ return 1;
}
PRIVATE int