X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=history.c;h=ef9a9366372d67c3534ede66ed4cfe3184fe260d;hb=1c03d229073e56dda9e5856db5adaae51576a3bb;hp=ca4e00186338554332e5402d22c7eea711ee2f3e;hpb=a009a27e8c1e0bfa818f12fdcae675d0babc510a;p=xboard.git diff --git a/history.c b/history.c index ca4e001..ef9a936 100644 --- a/history.c +++ b/history.c @@ -21,7 +21,7 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/. + * along with this program. If not, see http://www.gnu.org/licenses/. * * ------------------------------------------------------------------------ ** See the file ChangeLog for a revision history. */ @@ -79,7 +79,7 @@ OnlyCurrentPositionChanged () if( lastFirst >= 0 && lastLast >= lastFirst && - lastCurrent >= lastFirst && + lastCurrent >= lastFirst && currFirst == lastFirst && currLast == lastLast && currCurrent >= 0 && @@ -145,7 +145,7 @@ AppendMoveToMemo (int index) /* PV info (if any) */ if( appData.showEvalInMoveHistory && currPvInfo[index].depth > 0 ) { - sprintf( buf, "{%s%.2f/%d} ", + sprintf( buf, "{%s%.2f/%d} ", currPvInfo[index].score >= 0 ? "+" : "", currPvInfo[index].score / 100.0, currPvInfo[index].depth ); @@ -172,7 +172,7 @@ static void DoHighlight (int index, int onoff) { if( index >= 0 && index < MAX_MOVES ) { - HighlightMove( histMoves[index].memoOffset, + HighlightMove( histMoves[index].memoOffset, histMoves[index].memoOffset + histMoves[index].memoLength, onoff ); } } @@ -255,4 +255,3 @@ MoveHistorySet (char movelist[][2*MOVE_LEN], int first, int last, int current, C if(MoveHistoryDialogExists()) UpdateMoveHistory(); // [HGM] call this directly, in stead of through call-back } -