removed isValidCoord in onMouseUp

This commit is contained in:
BeGj
2025-03-04 12:24:35 +00:00
parent 276eee1152
commit de07fd0b4f
-3
View File
@@ -118,9 +118,6 @@ export class UnitLayer implements Layer {
event.x,
event.y,
);
if (!this.game.isValidCoord(cell.x, cell.y)) {
return;
}
// Find warships near this cell, sorted by distance
const nearbyWarships = this.findWarshipsNearCell(cell);