From 18868c978b56e14f11a700c33fe8572fd953a16f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 8 Feb 2024 19:57:05 -0500 Subject: Hey don't hijack load twice you dummy --- racing/lobby.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/racing/lobby.gd b/racing/lobby.gd index 2f965d9..10fefb6 100644 --- a/racing/lobby.gd +++ b/racing/lobby.gd @@ -15,7 +15,7 @@ const MAX_PLAYERS = 250 const PROTOCOL_VERSION = 2 const RECIPIENT_BROADCAST_ALL = -1 const LOBBY_MAP_NAME = "ll1_racing" -const VERSION = "0.0.5" +const VERSION = "0.0.6" const LL1_AREAS = [ ["Starting Room", 0, 0, 0], @@ -74,7 +74,6 @@ const LL1_AREAS = [ func _ready(): global._print("Starting Lobby") - installScriptExtension(ResourceLoader.load("user://maps/racing/load.gd")) # P2P solve messages should still be received while paused. set_pause_mode(Node.PAUSE_MODE_PROCESS) @@ -84,6 +83,8 @@ func _ready(): Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) if global.get_node_or_null("RaceManager") == null: + installScriptExtension(ResourceLoader.load("user://maps/racing/load.gd")) + var race_manager_script = load("user://maps/racing/manager.gd") var race_manager = race_manager_script.new() race_manager.name = "RaceManager" @@ -417,6 +418,7 @@ func _start_game(): ) global.entry_rotate = Vector3(0, 0, 0) global.sets_entry_point = true + var _discard = get_tree().change_scene("res://scenes/load_screen.tscn") -- cgit 1.4.1