Skip to content

Commit

Permalink
Added debugging for board dragging bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Dec 13, 2024
1 parent d9547da commit 25693db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/scripts/esm/game/rendering/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,13 @@ function recalcTile_MouseOver() {
const tile_MouseOver_IntAndFloat = getTileMouseOver();

tile_MouseOver_Float = tile_MouseOver_IntAndFloat.tile_Float;
if (options.isDebugModeOn()) console.log("Set tile_MouseOver_Float: " + JSON.stringify(tile_MouseOver_Float));
tile_MouseOver_Int = tile_MouseOver_IntAndFloat.tile_Int;
}

function setTile_MouseOverToUndefined() {
tile_MouseOver_Float = undefined;
if (options.isDebugModeOn()) console.log("Set tile_MouseOver_Float: " + JSON.stringify(tile_MouseOver_Float));
tile_MouseOver_Int = undefined;
}

Expand All @@ -169,6 +171,7 @@ function recalcTile_CrosshairOver() {
const coords = space.convertWorldSpaceToCoords(input.getMouseWorldLocation());

tile_MouseOver_Float = coords;
if (options.isDebugModeOn()) console.log("Set tile_MouseOver_Float: " + JSON.stringify(tile_MouseOver_Float));
tile_MouseOver_Int = [Math.floor(coords[0] + squareCenter), Math.floor(coords[1] + squareCenter)];
}

Expand Down

0 comments on commit 25693db

Please sign in to comment.