X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=72dba19ca4797724eafa1feb36741cf748b6e106;hb=728531bf7750e620134e7b1abcc9f72c81f1f3f7;hp=f80bfe383db2ea1750106d3d26b372b05b0192bb;hpb=d50bf1dd9d15885041ab284421a9a8297c4cea33;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index f80bfe3..72dba19 100644 --- a/fairymax.c +++ b/fairymax.c @@ -18,7 +18,7 @@ /*****************************************************************/ #define MULTIPATH -#define VERSION "4.8S" +#define VERSION "4.8T" #include #include @@ -342,7 +342,6 @@ int PrintResult(int s) } differs: ; } - K=I; cnt = D(s,-I,I,Q,O,LL|4*S,3); #ifdef SHATRANJ @@ -466,7 +465,7 @@ void PrintOptions() void LoadGame(char *name) { - int i, j, ptc, count=0; char c, buf[80], pieceToChar[80], parent[80]; + int i, j, ptc=0, count=0; char c, buf[80], pieceToChar[80], parent[80]; static int currentVariant; FILE *f; @@ -521,7 +520,6 @@ void LoadGame(char *name) c=0; if(i>15 || j>255) break; } - fclose(f); sh = w[7] < 250 ? 3 : 0; if(ptc > 1) { // setup board in GUI, by sending it pieceToCharTable and FEN if(ptc == 2) printf("setup (%s) ", pieceToChar); @@ -532,8 +530,10 @@ void LoadGame(char *name) for(i=2+!!makruk; i