This commit is contained in:
team3
2026-09-16 15:04:02 +02:00
parent 3be22351a3
commit b9d6b115c0
23 changed files with 795 additions and 425 deletions

View File

@@ -49,7 +49,10 @@ func _unhandled_key_input(event: InputEvent) -> void:
func _raum_bauen(code: String, cfg: Dictionary) -> void:
if raeume.has_node(code):
return
# Ein Nochmal ersetzt die alte Partie; alles andere ist ein Doppel.
if not cfg.get("rematch", false):
return
_raum_abbauen(code)
if menu != null:
menu.queue_free()
menu = null
@@ -103,9 +106,12 @@ func _wiedereinstieg(code: String, peer: int, pname: String) -> void:
Net.rejoin_annehmen(code, peer, pname, cfg)
## Sofort aus dem Baum, nicht erst am Frameende: ein Nochmal baut den Raum
## unter demselben Namen gleich wieder auf.
func _raum_abbauen(code: String) -> void:
var raum := raeume.get_node_or_null(NodePath(code))
if raum != null:
raeume.remove_child(raum)
raum.queue_free()