X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=fa3e089376a4e508551ded5ea0fca3c40341684f;hb=d96ffe6df6b1327912445cd71b47d1633316d372;hp=4dab30724ab01a4d88ca83ff327bb96eae3ab4c3;hpb=941d11f411a4d4c0f6edcc1a25010b8a60dad052;p=xboard.git diff --git a/backend.c b/backend.c index 4dab307..fa3e089 100644 --- a/backend.c +++ b/backend.c @@ -743,7 +743,7 @@ InitBackEnd1() /* [HGM] time odds: set factor for each machine */ first.timeOdds = appData.firstTimeOdds; second.timeOdds = appData.secondTimeOdds; - { int norm = 1; + { float norm = 1; if(appData.timeOddsMode) { norm = first.timeOdds; if(norm > second.timeOdds) norm = second.timeOdds; @@ -12602,7 +12602,7 @@ SendTimeRemaining(cps, machineWhite) /* [HGM] translate opponent's time by time-odds factor */ otime = (otime * cps->other->timeOdds) / cps->timeOdds; if (appData.debugMode) { - fprintf(debugFP, "time odds: %d %d \n", cps->timeOdds, cps->other->timeOdds); + fprintf(debugFP, "time odds: %f %f \n", cps->timeOdds, cps->other->timeOdds); } if (time <= 0) time = 1;