Ticket #145: sgffile.c.patch

File sgffile.c.patch, 0.8 kB (added by draqo, 2 years ago)
  • gnugo/engine/sgffile.c

    RCS file: /sources/gnugo/gnugo/engine/sgffile.c,v
    retrieving revision 1.39
    diff -u -r1.39 sgffile.c
     
    5454  if (!outfilename[0]) 
    5555    return; 
    5656   
    57   for (pos = BOARDMIN; pos < BOARDMAX; pos++) { 
    58     if (!ON_BOARD(pos)) 
    59       continue; 
     57  scan_board(pos, 
    6058     
    6159    if (IS_STONE(board[pos]) && (output_flags & OUTPUT_MARKDRAGONS)) { 
    6260      if (dragon[pos].crude_status == DEAD) 
     
    7169      else 
    7270        sgfLabelInt(node, (int) potential_moves[pos], I(pos), J(pos)); 
    7371    } 
    74   } 
     72  ) 
    7573   
    7674  if (value > 0.0 && (output_flags & OUTPUT_MOVEVALUES)) { 
    7775    sprintf(comment, "Value of move: %.2f", value);