aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/movecheck.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:48:14 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:48:14 +0100
commitb4faa902db8d74efa976cefefa169051a963b0ce (patch)
tree6dc228552aafbbb239f703836d6761ee9fb91a00 /FICS/movecheck.c
parent49918996e36f30980e6edfdfb2276ed5365884b6 (diff)
Deleted trailing whitespace characters
Diffstat (limited to 'FICS/movecheck.c')
-rw-r--r--FICS/movecheck.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/FICS/movecheck.c b/FICS/movecheck.c
index 8d62486..033a83c 100644
--- a/FICS/movecheck.c
+++ b/FICS/movecheck.c
@@ -1045,7 +1045,7 @@ PUBLIC int backup_move(int g, int mode)
if (garray[g].numHalfMoves < 1)
return MOVE_ILLEGAL;
gs = &garray[g].game_state;
- m = (mode==REL_GAME) ? &garray[g].moveList[garray[g].numHalfMoves - 1] :
+ m = (mode==REL_GAME) ? &garray[g].moveList[garray[g].numHalfMoves - 1] :
&garray[g].examMoveList[garray[g].numHalfMoves - 1];
if (m->toFile < 0) {
return MOVE_ILLEGAL;
@@ -1189,8 +1189,8 @@ cleanupMove:
#ifdef TIMESEAL
if (m->color == WHITE) {
- if (con[parray[garray[g].white].socket].timeseal) { /* white uses timeseal? */
- garray[g].wRealTime += (m->tookTime * 100);
+ if (con[parray[garray[g].white].socket].timeseal) { /* white uses timeseal? */
+ garray[g].wRealTime += (m->tookTime * 100);
garray[g].wRealTime -= (garray[g].wIncrement * 100);
garray[g].wTime = garray[g].wRealTime / 100;
if (con[parray[garray[g].black].socket].timeseal) { /* opp uses timeseal? */
@@ -1267,7 +1267,7 @@ cleanupMove:
********/
if (garray[g].numHalfMoves > 0) {
- m1 = (mode==REL_GAME) ? &garray[g].moveList[garray[g].numHalfMoves - 1] :
+ m1 = (mode==REL_GAME) ? &garray[g].moveList[garray[g].numHalfMoves - 1] :
&garray[g].examMoveList[garray[g].numHalfMoves - 1];
if (piecetype(gs->board[m1->toFile][m1->toRank]) == PAWN) {
if ((m1->toRank - m1->fromRank) == 2) {
@@ -1291,7 +1291,3 @@ cleanupMove:
/************** and here's the end **************/
return MOVE_OK;
}
-
-
-
-