From 7234a3d66447bbe4b90a164d19d94b6255c1563b Mon Sep 17 00:00:00 2001 From: zefad Date: Sat, 19 Sep 2026 11:10:35 +0200 Subject: [PATCH] game states cleanup --- src/score.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/score.rs b/src/score.rs index e6ce074..d689819 100644 --- a/src/score.rs +++ b/src/score.rs @@ -36,13 +36,9 @@ fn spawn_depth_text(mut commands: Commands) { } // Update depth score text -fn update_depth_text( - mut commands: Commands, - depth: Res, - texts: Query<&mut Text, With>, -) { +fn update_depth_text(depth: Res, texts: Query<&mut Text, With>) { for mut text in texts { - text.0 = format!("Score: {}", depth.0); + text.0 = format!("Score: {}", (depth.0 / 100.0).floor()); } }