Milestone 8 Final
This commit is contained in:
parent
56d77fbb53
commit
a82949ace7
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ grow_vertical = 0
|
||||||
[node name="Label" type="Label" parent="ver_string"]
|
[node name="Label" type="Label" parent="ver_string"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_font_sizes/font_size = 32
|
theme_override_font_sizes/font_size = 32
|
||||||
text = "M7"
|
text = "M8"
|
||||||
horizontal_alignment = 2
|
horizontal_alignment = 2
|
||||||
|
|
||||||
[connection signal="pressed" from="main_content/join" to="." method="_on_join_pressed"]
|
[connection signal="pressed" from="main_content/join" to="." method="_on_join_pressed"]
|
||||||
|
|
|
@ -30,7 +30,7 @@ func create_game():
|
||||||
|
|
||||||
func _on_player_disconnected(id):
|
func _on_player_disconnected(id):
|
||||||
while multiplayer.is_server():
|
while multiplayer.is_server():
|
||||||
for i in range(5000):
|
for i in range(1000):
|
||||||
if id in multiplayer.get_peers():
|
if id in multiplayer.get_peers():
|
||||||
break
|
break
|
||||||
await get_tree().create_timer(0.001).timeout
|
await get_tree().create_timer(0.001).timeout
|
||||||
|
|
Loading…
Reference in a new issue