diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-13 18:06:08 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-13 18:06:08 +0100 |
commit | a1e6cc2afb9e1fa92b839ff5cefbc119eec222d1 (patch) | |
tree | 3bf7cb6758a13c3e56fe2866d0767a87e0aa4632 | |
parent | 291ae74b06353810b9cad24d4044be1cc878c95e (diff) |
Fixed bogus order
-rw-r--r-- | FICS/obsproc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 7cd26a7..ac6a131 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -685,22 +685,24 @@ ExamineStored(FILE *fp, int p, char *filename) return -1; } - gg->startTime = tenth_secs(); - - gg->black = p; - gg->game_state.gameNum = g; + gg->startTime = tenth_secs(); gg->lastDecTime = gg->startTime; gg->lastMoveTime = gg->startTime; + + gg->totalHalfMoves = gg->numHalfMoves; gg->numHalfMoves = 0; gg->revertHalfMove = 0; - gg->totalHalfMoves = gg->numHalfMoves; + + gg->black = p; gg->white = p; + gg->game_state.gameNum = g; parray[p].game = g; parray[p].side = WHITE; send_boards(g); MakeFENpos(g, (char *)garray[g].FENstartPos); + return g; } |