From 641732ae03cdf11ce123a176a711de391339280f Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Sun, 10 Aug 2025 05:45:25 -0700 Subject: [PATCH] Fixed 0th index having pipes after rewinding to that spot --- src/bin/flappy/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bin/flappy/main.rs b/src/bin/flappy/main.rs index d0f1792..d0d02f3 100644 --- a/src/bin/flappy/main.rs +++ b/src/bin/flappy/main.rs @@ -868,10 +868,10 @@ fn update_tooltip( &mut ToolTip, Option<&LinearVelocity>, Option<&Batch>, - Entity, + Option<&RigidBody>, )>, ) { - query.iter_mut().for_each(|(mut tt, lv, b, _e)| { + query.iter_mut().for_each(|(mut tt, lv, b, rb)| { // Add Linear Velocity if present on entity lv.iter().for_each(|it| { tt.insert("Velocity", format!("{}", it.0)); @@ -880,5 +880,8 @@ fn update_tooltip( b.iter().for_each(|it| { tt.insert("Batch", format!("{}", it.0)); }); + rb.iter().for_each(|it| { + tt.insert("RigidBody", format!("{it:?}")); + }) }); }