X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=blobdiff_plain;f=fairymax.c;h=dfa3ea61bbb0e5861a7efcef4f5cf76d4a8fd4fa;hp=83002e538d0526cf796063384c5eb097906a8697;hb=c62ef367da4863f395624f3eb02cc9f215b42ada;hpb=28d45d9a9d1df30f7230bbdbbec81e3eb9c9276c 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 */