Skip to content

Commit

Permalink
Fixed UI valid move issue
Browse files Browse the repository at this point in the history
  • Loading branch information
skotz committed Dec 16, 2016
1 parent 0e073fe commit 20416d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Chase.GUI/GameForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,16 @@ private void ClickTile(int index)
{
// Select a source tile
selectedFromTile = index;
}

// If the move we need to make is filling in points after a capture
if (moves[0].Increment > 0)
{
Move move = moves.FirstOrDefault(x => x.ToIndex == selectedFromTile);
// If the move we need to make is filling in points after a capture
if (moves[0].Increment > 0)
{
Move move = moves.FirstOrDefault(x => x.ToIndex == index);

if (move != null)
{
MakeMove(move);
}
if (move != null)
{
MakeMove(move);
}
}
}
Expand Down

0 comments on commit 20416d6

Please sign in to comment.