online multiplayer chess game (note server currently down)
now attempt
bendn 2022-04-25
parent 21082c6 · commit b466bce
-rw-r--r--Grid.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Grid.gd b/Grid.gd
index b11652f..4a3e976 100644
--- a/Grid.gd
+++ b/Grid.gd
@@ -21,7 +21,7 @@ func init_matrix():
for i in range(8):
matrix.append([])
for _j in range(8):
- matrix[i].append()
+ matrix[i].append(0)
add_pieces()
@@ -165,7 +165,7 @@ func square_clicked(position: Vector2):
if typeof(Globals.last_clicked) == TYPE_INT: # its 0
return
Globals.last_clicked.spot(position)
- Globals.last_clicked = null
+ Globals.last_clicked = 0
elif typeof(Globals.last_clicked) != typeof(spot) or Globals.last_clicked != spot:
Globals.last_clicked = spot
spot.clicked()