From: H.G. Muller Date: Tue, 11 Sep 2012 14:02:50 +0000 (+0200) Subject: Fix bad timeseal bug X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=dca71370d0546bf23a7984368bc5e2bfc209452b;p=capablanca.git Fix bad timeseal bug When flagging the opponent, the black elapsed time was calculated using whites time for receiving the move. --- diff --git a/lasker-2.2.3/src/timeseal.c b/lasker-2.2.3/src/timeseal.c index 4f9b942..02d3c4f 100644 --- a/lasker-2.2.3/src/timeseal.c +++ b/lasker-2.2.3/src/timeseal.c @@ -176,7 +176,7 @@ void ExecuteFlagCmd(int p, struct connection_t *con) pcommand(pp->opponent, "flag"); } } else if (pp->side == BLACK) { - gg->bRealTime -= con->time - gg->wTimeWhenReceivedMove; + gg->bRealTime -= con->time - gg->bTimeWhenReceivedMove; gg->bTimeWhenReceivedMove = con->time; if (gg->bRealTime < 0) { pcommand(pp->opponent, "flag");