Fix phantom castlings in Spartan Chess
[fairymax.git] / maxqi.c
diff --git a/maxqi.c b/maxqi.c
index 9b15595..cb7bc7e 100644 (file)
--- a/maxqi.c
+++ b/maxqi.c
@@ -88,14 +88,14 @@ int GetTickCount() // with thanks to Tord
        gettimeofday(&t, NULL);\r
        return t.tv_sec*1000 + t.tv_usec/1000;\r
 }\r
-#ifndef QINI_FILE 
-#define QINI_FILE "qmax.ini"
+#ifndef INI_FILE 
+#define INI_FILE "qmax.ini"
 #endif
 \r
 #else\r
 \r
 #include <windows.h>\r
-#define QINI_FILE "qmax.ini"\r
+#define INI_FILE "qmax.ini"\r
 \r
 #endif\r
 \r
@@ -132,7 +132,7 @@ int Fifty;
 int UnderProm;\r
 int GameNr;\r
 char piecename[32], piecetype[32], defaultchar[]=".PPKNBRQEWFMACHG";\r
-char *inifile = QINI_FILE;\r
+char *inifile = INI_FILE;\r
 \r
 int Ticks, tlim, Setup, SetupQ;\r
 \r
@@ -330,10 +330,6 @@ int PrintResult(int s)
         }\r
         K=I;\r
         cnt = D(s,-I,I,Q,4*S,3);\r
-        if(cnt==0 && K==0 && L==0) {\r
-                printf("1/2-1/2 {Stalemate}\n");\r
-                return 2;\r
-        }\r
         if(cnt==-I+1) {\r
                 if (s == WHITE)\r
                         printf("0-1 {Black mates}\n");\r