docs: fix _spawn_player — restore ROOM_COUNT modulo guard

This commit is contained in:
2026-04-14 21:49:10 +02:00
parent 530169cb79
commit f03fd9c2cb

View File

@@ -214,7 +214,7 @@ This script is attached to the `CharacterBody3D` that `tavern.gd` creates. It ha
```gdscript
func _spawn_player(room_index: int) -> void:
var room_name := "Room%d" % (room_index + 1)
var room_name := "Room%d" % (room_index % ROOM_COUNT + 1)
var spawn := get_node("UpperFloor/%s/SpawnPoint" % room_name) as Marker3D
if spawn == null:
push_error("[Tavern] SpawnPoint nicht gefunden: %s" % room_name)