Skip to content

Commit

Permalink
[trivial] Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ido-Barnea committed Jan 18, 2024
1 parent e33fd5f commit cf88a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions development/code/LogicAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { game } from './Game';
import { SELECTED_PIECE_CLASS } from './logic/Constants';
import { MOUSE_HIGHLIGHT_CLASS, SELECTED_PIECE_CLASS } from './logic/Constants';
import { isAllowedToAct, onPieceFellOffTheBoard, onPlayerAction } from './logic/PieceLogic';
import { comparePositions, convertSquareIdToPosition } from './logic/Utilities';
import { Item } from './logic/items/Items';
Expand Down Expand Up @@ -97,7 +97,7 @@ function highlightLegalMoves(
// Remove all highlights
const allSquareElements = getAllSquareElements(boardId);
for (const squareElement of allSquareElements) {
if (!squareElement.classList.contains('mouse-highlight')) {
if (!squareElement.classList.contains(MOUSE_HIGHLIGHT_CLASS)) {
highlightSquare(squareElement, false, false);
}
}
Expand Down

0 comments on commit cf88a7b

Please sign in to comment.