From c62ef367da4863f395624f3eb02cc9f215b42ada Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 27 Dec 2011 15:39:42 +0100 Subject: [PATCH] Fix undo in variant seirawan The gated pieces were not remembered in the game history, so that replaying it when tking bck a move did not work properly. --- fairymax.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fairymax.c b/fairymax.c index 83002e5..dfa3ea6 100644 --- a/fairymax.c +++ b/fairymax.c @@ -68,10 +68,10 @@ int StartKey; #endif /* make unique integer from engine move representation */ -#define PACK_MOVE 256*K + L + (PromPiece << 16); +#define PACK_MOVE 256*K + L + (PromPiece << 16) + (GT<<24); /* convert intger argument back to engine move representation */ -#define UNPACK_MOVE(A) K = (A)>>8 & 255; L = (A) & 255; PromPiece = (A)>>16 & 255; +#define UNPACK_MOVE(A) K = (A)>>8 & 255; L = (A) & 255; PromPiece = (A)>>16 & 255; GT = (A)>>24 & 255; /* Global variables visible to engine. Normally they */ /* would be replaced by the names under which these */ -- 1.7.0.4