Fix bad timeseal bug
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 11 Sep 2012 14:02:50 +0000 (16:02 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 11 Sep 2012 14:02:50 +0000 (16:02 +0200)
When flagging the opponent, the black elapsed time was calculated using
whites time for receiving the move.

lasker-2.2.3/src/timeseal.c

index 4f9b942..02d3c4f 100644 (file)
@@ -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");