]> git.sesse.net Git - stockfish/commitdiff
Restore startpos_ply_counter() instead of full_moves()
authorMarco Costalba <mcostalba@gmail.com>
Sat, 2 Jul 2011 15:15:20 +0000 (16:15 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 3 Jul 2011 05:54:46 +0000 (06:54 +0100)
And pass correct currentPly to TimeManager::init().

This restores old behaviour, in particular now black has
a different timing than white becuase is no more:

currentPly = 2 * fullMoveNumber;

but becomes

2 * (fullMoves - 1) + int(sideToMove == BLACK)

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found