if(!strcmp("su", category)) {
strcpy(category, "super");
} else
+ if(!strcmp("sc", category)) {
+ strcpy(category, "seirawan");
+ } else
if(!strcmp("sg", category)) {
strcpy(category, "shogi");
} else
if(!strcmp("gr", category)) {
strcpy(category, "great");
} else
+ if(!strcmp("sp", category)) {
+ strcpy(category, "spartan");
+ } else
if(!strcmp("xq", category)) {
strcpy(category, "xiangqi");
}
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);