Restore hover border to pool tiles.

This commit is contained in:
yukirij 2024-09-04 17:16:56 -07:00
parent 4c8a1b4915
commit e6f677b129

View File

@ -867,7 +867,7 @@ const INTERFACE = {
// Draw border // Draw border
let turn_indicator = player == (GAME_DATA.turn & 1) && (INTERFACE_DATA.player == player || INTERFACE_DATA.player == 2); let turn_indicator = player == (GAME_DATA.turn & 1) && (INTERFACE_DATA.player == player || INTERFACE_DATA.player == 2);
if(background_color !== null || turn_indicator) { if(is_hover || background_color !== null || turn_indicator) {
if(is_hover) { this.ctx.fillStyle = INTERFACE.Color.HintHover; } if(is_hover) { this.ctx.fillStyle = INTERFACE.Color.HintHover; }
else { this.ctx.fillStyle = player_color; } else { this.ctx.fillStyle = player_color; }
this.ctx.beginPath(); this.ctx.beginPath();