X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=book.c;h=1c013c27a9c4e0eb13b8633abf43a8bf833c9233;hb=6f3c9bba464d20c0abff140f3f7a6ccd0291253b;hp=cfc25c8d95a5a0a3f5745eebbb54b05aea6a03ba;hpb=6bead4fda35db0cb9ec61309ee7cd9c99bb53475;p=xboard.git diff --git a/book.c b/book.c index cfc25c8..1c013c2 100644 --- a/book.c +++ b/book.c @@ -647,7 +647,7 @@ InitMemBook () } char * -MCprobe (moveNr) +MCprobe (int moveNr) { int count, count2, games, i, choice=0; entry_t entries[MOVE_BUF]; @@ -742,6 +742,9 @@ MovesToText(int count, entry_t *entries) move_to_string(algMove, entries[i].move); if(sscanf(algMove, "%c%d%*c%*d,%c%d%c%d", &c1, &i1, &c2, &i2, &c3, &i3) == 6) snprintf(algMove, 12, "%c%dx%c%d-%c%d", c1, i1, c2, i2, c3, i3); // cast double-moves in format SAN parser will understand + else if(sscanf(algMove, "%c%d%c%d%c", &c1, &i1, &c2, &i2, &c3) >= 4) { + CoordsToAlgebraic(boards[currentMove], PosFlags(currentMove), i1-ONE+'0', c1-AAA, i2-ONE+'0', c2-AAA, c3, algMove); + } buf[0] = NULLCHAR; if(entries[i].learnCount || entries[i].learnPoints) snprintf(buf, MSG_SIZ, " {%d/%d}", entries[i].learnPoints, entries[i].learnCount);