From: H.G. Muller Date: Sat, 31 Dec 2011 10:25:53 +0000 (+0100) Subject: Pay attention to variant when resuming adjourned game X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f6015b32edd1131618568840445c29dbf48ed1ac;p=capablanca.git Pay attention to variant when resuming adjourned game --- diff --git a/lasker-2.2.3/src/matchproc.c b/lasker-2.2.3/src/matchproc.c index 5f6cd0b..f8d117e 100644 --- a/lasker-2.2.3/src/matchproc.c +++ b/lasker-2.2.3/src/matchproc.c @@ -693,12 +693,17 @@ int com_match(int p, param_list param) g = game_new(); adjourned = (game_read(g, p, p1) >= 0) || (game_read(g, p1, p) >= 0); if (adjourned) { + char *q; type = game_globals.garray[g].type; wt = game_globals.garray[g].wInitTime / 600; bt = game_globals.garray[g].bInitTime / 600; winc = game_globals.garray[g].wIncrement / 10; binc = game_globals.garray[g].bIncrement / 10; rated = game_globals.garray[g].rated; + strcpy(category, game_globals.garray[g].variant); + if(q = strchr(category, '/')) { + *q = 0; strcpy(board, q+1); + } else strcpy(board, "0"); } game_remove(g);