Prevent click redraws while AI is thinking

main
Elnu 2 years ago
parent acb9e05e07
commit 851c2f401d

@ -189,6 +189,7 @@ public class Board {
}
void handleMouseUp(int x, int y) {
if (aiThinking) return;
// Get board coordinate of mouse release
BoardCoordinate newCoordinate = new ScreenCoordinate(x, y).toBoard();
// Only do something if new coordinate is different from the originating coordinate