projects
/
capablanca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ba3ffb7
)
Fix bad timeseal bug
author
H.G. Muller
<h.g.muller@hccnet.nl>
Tue, 11 Sep 2012 14:02:50 +0000 (16:02 +0200)
committer
H.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
patch
|
blob
|
history
diff --git
a/lasker-2.2.3/src/timeseal.c
b/lasker-2.2.3/src/timeseal.c
index
4f9b942
..
02d3c4f
100644
(file)
--- 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");