From: H.G. Muller Date: Tue, 27 Dec 2011 14:39:42 +0000 (+0100) Subject: Fix undo in variant seirawan X-Git-Tag: 4.8S~21 X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=commitdiff_plain;h=c62ef367da4863f395624f3eb02cc9f215b42ada 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. --- 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 */