Account for Elephant and Hawk in Seirawan game stage
authorH.G. Muller <h.g.muller@hccnet.nl>
Wed, 17 Nov 2010 15:07:23 +0000 (16:07 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Wed, 17 Nov 2010 15:07:23 +0000 (16:07 +0100)
The holdings pieces were not counted when initializing R.

fairymax.c

index 85783a1..072e67f 100644 (file)
@@ -784,7 +784,7 @@ int main(int argc, char **argv)
                         sscanf(line, "variant %s", command);\r
                         LoadGame(command);\r
                         InitGame(); Setup = 0;\r
-                        if(strstr(command,"seirawan")) pl[13] = pl[15] = pl[29] = pl[31] = 1;\r
+                        if(strstr(command,"seirawan")) pl[13] = pl[15] = pl[29] = pl[31] = 1, R += 2*(w[6]/FAC + w[8]/FAC);\r
                        continue;\r
                }\r
                 if (!strcmp(command, "edit")) {\r