X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=lasker-2.2.3%2Fsrc%2Fmatchproc.c;h=f8d117eb35df6edfe10a9b5085be792c1e63c134;hb=400af23d7b0fd6fdbf595afab97d09b79ed4e696;hp=020be3888399c65154c4b8d05f81e53bbe602442;hpb=fc8a38817986f2ad7a034db0d413762e509a7cac;p=capablanca.git diff --git a/lasker-2.2.3/src/matchproc.c b/lasker-2.2.3/src/matchproc.c index 020be38..f8d117e 100644 --- a/lasker-2.2.3/src/matchproc.c +++ b/lasker-2.2.3/src/matchproc.c @@ -158,7 +158,7 @@ static void output_match_messages(int wp,int bp,int g, char* mess) rstr[game_globals.garray[g].rated], //bstr[game_globals.garray[g].type], game_globals.garray[g].variant, - game_globals.garray[g].wInitTime, + game_globals.garray[g].wInitTime/600, game_globals.garray[g].wIncrement); pprintf(wp, "%s", outStr); pprintf(bp, "%s", outStr); @@ -531,6 +531,9 @@ static int parse_match_string(int p, int* wt,int* bt,int* winc,int* binc, if(!strcmp("su", category)) { strcpy(category, "super"); } else + if(!strcmp("sc", category)) { + strcpy(category, "seirawan"); + } else if(!strcmp("sg", category)) { strcpy(category, "shogi"); } else @@ -540,6 +543,9 @@ static int parse_match_string(int p, int* wt,int* bt,int* winc,int* binc, if(!strcmp("gr", category)) { strcpy(category, "great"); } else + if(!strcmp("sp", category)) { + strcpy(category, "spartan"); + } else if(!strcmp("xq", category)) { strcpy(category, "xiangqi"); } @@ -687,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);