Subversion Repositories Games.Chess Giants

Rev

Rev 108 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 154
Line 147... Line 147...
147
    sscanf(args[3], "%d-%d", &line1, &line2);
147
    sscanf(args[3], "%d-%d", &line1, &line2);
148
  else {
148
  else {
149
    sscanf(args[3], "%d", &line1);
149
    sscanf(args[3], "%d", &line1);
150
    line2 = 999;
150
    line2 = 999;
151
  }
151
  }
152
  annotate_margin = (int) (atof(args[4]) * PieceValues(white, pawn)); // Pierre-Marie Baty -- added type cast
152
  annotate_margin = atof(args[4]) * PieceValues(white, pawn);
153
  annotate_search_time_limit = (int) (atof(args[5]) * 100); // Pierre-Marie Baty -- added type cast
153
  annotate_search_time_limit = atof(args[5]) * 100;
154
  if (nargs > 6)
154
  if (nargs > 6)
155
    best_moves = atoi(args[6]);
155
    best_moves = atoi(args[6]);
156
  else
156
  else
157
    best_moves = 1;
157
    best_moves = 1;
158
/*
158
/*
Line 261... Line 261...
261
        Print(4095, "Player name doesn't match any PGN name tag, retry\n");
261
        Print(4095, "Player name doesn't match any PGN name tag, retry\n");
262
        fclose(annotate_out);
262
        fclose(annotate_out);
263
        return;
263
        return;
264
      }
264
      }
265
    }
265
    }
266
    do {
266
    while (FOREVER) {
267
      fflush(annotate_out);
267
      fflush(annotate_out);
268
      move = ReadNextMove(tree, buffer, 0, wtm);
268
      move = ReadNextMove(tree, buffer, 0, wtm);
269
      if (move <= 0)
269
      if (move <= 0)
270
        break;
270
        break;
271
      strcpy(text, OutputMove(tree, 0, wtm, move));
271
      strcpy(text, OutputMove(tree, 0, wtm, move));
Line 492... Line 492...
492
        move_number++;
492
        move_number++;
493
      if (read_status != 0)
493
      if (read_status != 0)
494
        break;
494
        break;
495
      if (line2 < -1)
495
      if (line2 < -1)
496
        break;
496
        break;
497
    } while (1);
497
    }
498
    fprintf(annotate_out, "  %s %s\n\n", pgn_result, html_br);
498
    fprintf(annotate_out, "  %s %s\n\n", pgn_result, html_br);
499
    if (html_mode == 1) {
499
    if (html_mode == 1) {
500
      fprintf(annotate_out, "%s\n", html_br);
500
      fprintf(annotate_out, "%s\n", html_br);
501
      AnnotateFooterHTML(annotate_out);
501
      AnnotateFooterHTML(annotate_out);
502
    }
502
    }