online multiplayer chess game (note server currently down)
Diffstat (limited to 'PGN/PGN.gd')
| -rw-r--r-- | PGN/PGN.gd | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,7 +2,7 @@ extends Node class_name PGN -func parse(pgn: String, tags := true) -> Dictionary: +func parse(pgn: String, tags := true): # put tags into a dictionary, # and the moves into a array @@ -33,8 +33,7 @@ func parse(pgn: String, tags := true) -> Dictionary: headers[cap[1]] = cap[2] else: # invalid headers - push_error("invalid headers") - return {} + return null else: break var movetext := PoolStringArray() |