X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fsrc%2Fboard.c;h=40e7037cf222ecdd101841d5ef159fa077a8c31f;hp=8c9247377a68002308a89b2da702211ca622bb1f;hb=5317b80b41045bd23473faf4748a9539a06e5f52;hpb=3f31178e2168d0dc5ca0db4e245c63c25bb7ed1d diff --git a/lasker-2.2.3/src/board.c b/lasker-2.2.3/src/board.c index 8c92473..40e7037 100644 --- a/lasker-2.2.3/src/board.c +++ b/lasker-2.2.3/src/board.c @@ -181,9 +181,6 @@ int board_init(int g,struct game_state_t *b, char *category, char *board) sprintf(b->variant, "wild/%d", wval); } - if (board && !strcmp(board, "0")) - b->setup = 0; // [HGM] variant: any board in the default file "0" is supposed to be implied by the variant - if (!strcmp(category, "knightmate")) { board_standard(b); } else if (!strcmp(category, "super")) { @@ -386,6 +383,7 @@ char *board_to_string(char *wn, char *bn, game_globals.garray[b->gameNum].black_name); } else bstring[0] = '\0'; + if (bh && !IsMachineStyle(style)) append_holding_display(bstring, b, orientation==BLACK); @@ -998,6 +996,9 @@ static int board_read_file(char *category, char *gname, struct game_state_t *gs) board_clear(gs); gs->setup = 1; + if (gname && !strcmp(gname, "0")) + gs->setup = 0; // [HGM] variant: any board in the default file "0" is supposed to be implied by the variant + while (!feof(fp)) { c = fgetc(fp); if (onNewLine) {