docs: fix _spawn_player — restore ROOM_COUNT modulo guard
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user