X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=bb842dacc6d706bdd2593eade971af7c9b16e736;hb=a470951095b2ab90dbe7c256d42546b60d63299f;hp=3a89dd56c182249ad20ed6416f88bdf8ab1fd134;hpb=8880d727cc1877ceea3edc6db2c0634799448707;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 3a89dd5..bb842da 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; +#define PACK_MOVE 256*K + L + (PromPiece << 16); /* convert intger argument back to engine move representation */ -#define UNPACK_MOVE(A) K = (A)>>8 & 255; L = (A) & 255; +#define UNPACK_MOVE(A) K = (A)>>8 & 255; L = (A) & 255; PromPiece = (A)>>16 & 255; /* Global variables visible to engine. Normally they */ /* would be replaced by the names under which these */