From 6f8f70b56d1cc9068d239a9ac928e2382fe636b7 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 9 Oct 2024 07:15:24 -0700 Subject: [PATCH] Remove eprintln from `2d_screen_shake` example (#15786) # Objective Remove debug print ## Solution Remove it ## Testing `cargo run --example 2d_screen_shake` --- examples/camera/2d_screen_shake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/camera/2d_screen_shake.rs b/examples/camera/2d_screen_shake.rs index e66335f94b..9c871bbfb1 100644 --- a/examples/camera/2d_screen_shake.rs +++ b/examples/camera/2d_screen_shake.rs @@ -143,7 +143,7 @@ fn screen_shake( let angle = (screen_shake.max_angle * shake).to_radians() * rng.gen_range(-1.0..1.0); let offset_x = screen_shake.max_offset * shake * rng.gen_range(-1.0..1.0); let offset_y = screen_shake.max_offset * shake * rng.gen_range(-1.0..1.0); - eprintln!("{} {}", offset_x, offset_y); + if shake > 0.0 { for (mut camera, mut transform) in query.iter_mut() { // Position