mirror of
https://github.com/godotengine/tps-demo.git
synced 2026-01-01 01:48:39 +03:00
Remove superfluous and wrong logic to reuse cached load (#186)
This commit is contained in:
committed by
GitHub
parent
34c05068ef
commit
690ee91837
@@ -153,11 +153,7 @@ func _on_loading_done_timer_timeout():
|
||||
func _on_play_pressed():
|
||||
main.hide()
|
||||
loading.show()
|
||||
if ResourceLoader.has_cached(path):
|
||||
multiplayer.multiplayer_peer = peer
|
||||
emit_signal("replace_main_scene", ResourceLoader.load_threaded_get(path))
|
||||
else:
|
||||
ResourceLoader.load_threaded_request(path, "", true)
|
||||
ResourceLoader.load_threaded_request(path, "", true)
|
||||
|
||||
func _on_settings_pressed():
|
||||
main.hide()
|
||||
|
||||
Reference in New Issue
Block a user