Give King neutral PST
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 24 Feb 2013 11:09:59 +0000 (12:09 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Mon, 21 Oct 2013 08:40:23 +0000 (10:40 +0200)
The King was drawn to the center like any general...

hachu.c

diff --git a/hachu.c b/hachu.c
index 8267b72..68e0674 100644 (file)
--- a/hachu.c
+++ b/hachu.c
@@ -676,7 +676,7 @@ AddPiece (int stm, PieceDesc *list)
     if(p[j].promo >= i) p[j].promo += 2;\r
   }\r
   if(royal[stm] >= i) royal[stm] += 2;\r
-  if(p[i].value == (currentVariant == V_SHO ? 410 : 280) ) royal[stm] = i;\r
+  if(p[i].value == (currentVariant == V_SHO ? 410 : 280) ) royal[stm] = i, p[i].pst = 0;\r
   p[i].qval = (currentVariant == V_TENJIKU ? list->ranking : 0); // jump-capture hierarchy\r
   return i;\r
 }\r