From e147517ad23005d5aacdb9ce86f15f8ada56567e Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Sat, 5 Oct 2024 22:03:22 +0200 Subject: [PATCH] Removed a print statement used for debugging, added type hint to a variable --- core/audio/spatial_audio_player.gd | 3 +-- core/polygon/polygon.tscn | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/audio/spatial_audio_player.gd b/core/audio/spatial_audio_player.gd index deaea15..21ed584 100644 --- a/core/audio/spatial_audio_player.gd +++ b/core/audio/spatial_audio_player.gd @@ -55,7 +55,7 @@ func create_raycasts(): func determine_reverb_params() -> Array[float]: # returns [room_size, wetness] - var n_coll = 0 + var n_coll: int = 0 var collision_points: Array[Vector2] = [] for r in raycasts: if r.is_colliding(): @@ -117,5 +117,4 @@ func _ready() -> void: func _physics_process(_delta: float) -> void: var reverb_params = determine_reverb_params() - print(reverb_params) update_reverb(reverb_params[0], reverb_params[1]) diff --git a/core/polygon/polygon.tscn b/core/polygon/polygon.tscn index 35556ec..d01185f 100644 --- a/core/polygon/polygon.tscn +++ b/core/polygon/polygon.tscn @@ -2,7 +2,7 @@ [ext_resource type="Script" path="res://core/polygon/polygon.gd" id="1_ga37f"] -[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_81uph"] +[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_cjgtr"] [node name="Polygon" type="CollisionPolygon2D"] script = ExtResource("1_ga37f") @@ -11,4 +11,4 @@ script = ExtResource("1_ga37f") [node name="LightOccluder2D" type="LightOccluder2D" parent="."] editor_description = "For particle collisions" -occluder = SubResource("OccluderPolygon2D_81uph") +occluder = SubResource("OccluderPolygon2D_cjgtr")