Fix spurious setup command at startup
[fairymax.git] / fairymax.c
index f80bfe3..f20bb1f 100644 (file)
@@ -18,7 +18,7 @@
      /*****************************************************************/\r
 \r
 #define MULTIPATH\r
-#define VERSION "4.8S"\r
+#define VERSION "4.8T"\r
 \r
 #include <stdio.h>\r
 #include <stdlib.h>\r
@@ -343,6 +343,10 @@ int PrintResult(int s)
           differs: ;\r
         }\r
 \r
+\r
+\r
+\r
+\r
         K=I;\r
         cnt = D(s,-I,I,Q,O,LL|4*S,3);\r
 #ifdef SHATRANJ\r
@@ -466,7 +470,7 @@ void PrintOptions()
                                          \r
 void LoadGame(char *name)\r
 {\r
-        int i, j, ptc, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
+        int i, j, ptc=0, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
         static int currentVariant;\r
         FILE *f;\r
 \r
@@ -903,6 +907,8 @@ int main(int argc, char **argv)
                         CopyBoard(HistPtr=HistPtr+1&1023);\r
                         if(PrintResult(Side)) Computer = EMPTY;\r
                    }\r
+\r
                }\r
        }\r
+       return 0;\r
 }\r