From dca71370d0546bf23a7984368bc5e2bfc209452b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 11 Sep 2012 16:02:50 +0200 Subject: [PATCH] Fix bad timeseal bug When flagging the opponent, the black elapsed time was calculated using whites time for receiving the move. --- lasker-2.2.3/src/timeseal.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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"); -- 1.7.0.4