diff options
Diffstat (limited to 'src/movesup.c')
| -rwxr-xr-x | src/movesup.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/movesup.c b/src/movesup.c index 22bf0c1..82ba10a 100755 --- a/src/movesup.c +++ b/src/movesup.c @@ -220,7 +220,7 @@ Return value: iDelta = CHECK_DELTA_WITH_INDEX(iIndex); ASSERT(iDelta != 0); - bbOccupiedWithoutRemove = _BuildFullOccupiedBB(pos) & ~COOR_TO_BB(cRemove); + bbOccupiedWithoutRemove = pos->bbOccupied & ~COOR_TO_BB(cRemove); cBlocker = _NearestBlockerAlongRayBB(cLocation, iDelta, bbOccupiedWithoutRemove); return _ValidateExposedBlockerBB(pos, cBlocker, cLocation); @@ -270,7 +270,7 @@ Return value: } iDelta = CHECK_DELTA_WITH_INDEX(iIndex); - bbOccupiedWithoutRemove = _BuildFullOccupiedBB(pos) & ~COOR_TO_BB(cRemove); + bbOccupiedWithoutRemove = pos->bbOccupied & ~COOR_TO_BB(cRemove); cBlocker = _NearestBlockerAlongRayBB(cLocation, iDelta, bbOccupiedWithoutRemove); return _ValidateExposedBlockerBB(pos, cBlocker, cLocation); @@ -323,7 +323,7 @@ Return value: } iDelta = CHECK_DELTA_WITH_INDEX(iIndex); - bbOccupied = (_BuildFullOccupiedBB(pos) & + bbOccupied = (pos->bbOccupied & ~COOR_TO_BB(cTest) & ~COOR_TO_BB(cIgnore)) | COOR_TO_BB(cBlock); cBlocker = _NearestBlockerAlongRayBB(cKing, iDelta, bbOccupied); @@ -641,7 +641,7 @@ Return value: ASSERT(IS_ON_BOARD(cTest)); ASSERT(IS_VALID_COLOR(uSide)); - bbOccupied = _BuildFullOccupiedBB(pos); + bbOccupied = pos->bbOccupied; if (0 != _WhoAttacksSquareBB(pos, cTest, uSide, bbOccupied)) { return(TRUE); |
