aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/GameSession.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-25 22:35:59 +0200
committer Hop311 <hop3114@gmail.com>2023-04-25 22:35:59 +0200
commit50327abf33078c44fef85c62ce3d90e23056fb34 (patch)
treef39e8fe64c024ecfde01d2bc4faacb7cf0dddc2c /game/src/GameSession/GameSession.gd
parent8fba1c8a02f8680e0d80279b8b6451fea4a40a62 (diff)
Further cleanup + reset on return to main menu
Diffstat (limited to 'game/src/GameSession/GameSession.gd')
-rw-r--r--game/src/GameSession/GameSession.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/src/GameSession/GameSession.gd b/game/src/GameSession/GameSession.gd
index 2761815..556b98e 100644
--- a/game/src/GameSession/GameSession.gd
+++ b/game/src/GameSession/GameSession.gd
@@ -4,6 +4,8 @@ extends Control
func _ready():
Events.Options.load_settings_from_file()
+ if GameSingleton.setup() != OK:
+ push_error("Failed to setup game")
func _process(delta : float):
GameSingleton.try_tick()