X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=72dba19ca4797724eafa1feb36741cf748b6e106;hb=728531bf7750e620134e7b1abcc9f72c81f1f3f7;hp=3ec024fa2d232eb4b96bad67abb82eb62529c648;hpb=bd5a6cad6372e0a8406aeddd2033947b72fce082;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 3ec024f..72dba19 100644 --- a/fairymax.c +++ b/fairymax.c @@ -342,9 +342,6 @@ int PrintResult(int s) } differs: ; } - - - K=I; cnt = D(s,-I,I,Q,O,LL|4*S,3); #ifdef SHATRANJ @@ -468,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; @@ -523,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); @@ -534,8 +530,10 @@ void LoadGame(char *name) for(i=2+!!makruk; i