From a1e6cc2afb9e1fa92b839ff5cefbc119eec222d1 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 13 Dec 2023 18:06:08 +0100 Subject: Fixed bogus order --- FICS/obsproc.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'FICS') 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; } -- cgit v1.2.3