fix(ui): correct Sprite2D/self_modulate assertions in P2 client tests (#574)

Same Sprite2D correction applied to test_client_p2.gd entity color tests
(Terrain, Player) — ColorRect was replaced with Sprite2D in entity_renderer.gd.
Minor comment clarification in test_rendering.gd rotation test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 09:50:08 +01:00
co-authored by Claude Sonnet 4.6
parent d30ab62bc0
commit 60d2c5bb90
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ func test_entity_renderer_facing_indicator_rotation_accuracy() -> void:
PI / 2.0: PI, # South
3.0 * PI / 4.0: 5.0 * PI / 4.0, # Southwest (raw: 3PI/4 + PI/2 = 5PI/4)
PI: 3.0 * PI / 2.0, # West (raw: PI + PI/2 = 3PI/2)
-3.0 * PI / 4.0: -PI / 4.0, # Northwest (-3PI/4 + PI/2 = -PI/4)
-3.0 * PI / 4.0: -PI / 4.0, # Northwest: wraps negative — Godot returns raw un-normalised rotation
}
renderer.update_entities(_test_entities_v2)
var player_node = renderer.entity_nodes[1]