summaryrefslogtreecommitdiff
path: root/src/dynamic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dynamic.c')
-rwxr-xr-xsrc/dynamic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dynamic.c b/src/dynamic.c
index a923e1a..992b842 100755
--- a/src/dynamic.c
+++ b/src/dynamic.c
@@ -618,6 +618,7 @@ Return value:
FLAG fHaveValue = FALSE;
COOR c, c1;
+ // Two different pieces hanging.
if (_EnpriseSlotValid(ctx, 0, uSide) && _EnpriseSlotValid(ctx, 1, uSide))
{
c = ctx->cEnprise[uPly][0];
@@ -627,6 +628,8 @@ Return value:
PIECE_VALUE(ctx->sPosition.rgSquare[c1].pPiece));
fHaveValue = TRUE;
}
+
+ // A trapped piece under attack with nowhere to run.
if (_TrappedSlotValid(ctx, uSide))
{
c = ctx->cTrapped[uPly];