online multiplayer chess game (note server currently down)
Diffstat (limited to 'Grid.gd')
-rw-r--r--Grid.gd3
1 files changed, 2 insertions, 1 deletions
diff --git a/Grid.gd b/Grid.gd
index 6c50d7c..e1660dd 100644
--- a/Grid.gd
+++ b/Grid.gd
@@ -45,9 +45,10 @@ func check_in_check(): # check if in_check
Globals.in_check = true # set in_check
Globals.checking_piece = matrix[i][j] # set checking_piece
print("check by " + spot.shortname) # print the check
- return true # stop at the first check found
+ return true # stop at the first check found
return false
+
func _exit_tree():
Globals.grid = null # reset the globals grid when leaving tree