Fix spectator mouse

This commit is contained in:
0880
2026-01-21 02:10:24 +03:30
parent e0af5c2d33
commit 1d5b449d6d

View File

@@ -240,7 +240,7 @@
mouse = [x, y]; mouse = [x, y];
i = Math.floor((x / width) * 8); i = Math.floor((x / width) * 8);
j = Math.floor((y / height) * 8); j = Math.floor((y / height) * 8);
if (ready && state == -1) { if (ready && state == -1 && UID !== undefined) {
canvas.style.cursor = 'default'; canvas.style.cursor = 'default';
if (board) { if (board) {
if (color == 0) { if (color == 0) {