Fixed problem with fens like 8/7P/8/8/1k15/8/P7/K7 w - - 0 1, i.e. 1k15(and not 1k6)

This commit is contained in:
DHTMLGoodies
2015-12-24 01:20:00 +01:00
parent 7865a60934
commit 586d996e02
2 changed files with 33 additions and 5 deletions

View File

@@ -118,10 +118,6 @@ class FenParser0x88
}
$pos++;
} else if ($i < $len - 1 && isset(Board0x88Config::$numbers[$token])) {
$token2 = $this->fenParts['pieces'][$i + 1];
if (preg_match("/[0-9]/", $token2)) {
$token = $token . $token2;
}
$pos += intval($token);
}
}