From f6015b32edd1131618568840445c29dbf48ed1ac Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 31 Dec 2011 11:25:53 +0100 Subject: [PATCH] Pay attention to variant when resuming adjourned game --- lasker-2.2.3/src/matchproc.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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); -- 1.7.0.4