Record game history
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 15 May 2017 12:22:51 +0000 (14:22 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 15 May 2017 12:22:51 +0000 (14:22 +0200)
All moves played at game level are remembered in the array gameMove[],
for the benefit of taking back moves.

dropper.c

index aa314a3..f8c0a96 100644 (file)
--- a/dropper.c
+++ b/dropper.c
@@ -1634,6 +1634,7 @@ RootMakeMove(int move)
   // irreversibly adopt incrementally updated values from last move as new starting point
   MoveStack m;
   int e = undoInfo.pstEval, checker;
+  gameMove[moveNr] = move; // remember game
   undoInfo.pstEval = -undoInfo.newEval; // (like we initialize new Stackframe in daughter node)
   undoInfo.hashKey = undoInfo.newKey;
   undoInfo.rights |= spoiler[undoInfo.fromSqr] | spoiler[undoInfo.toSqr];