From 721e98f63ced8ffe87bfa669886149b920f45097 Mon Sep 17 00:00:00 2001 From: Sofia Date: Sun, 26 Jul 2026 20:43:09 +0300 Subject: [PATCH] Remove ball when replay ends --- rust/src/replay.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/src/replay.rs b/rust/src/replay.rs index 0d98783..c9e9cd6 100644 --- a/rust/src/replay.rs +++ b/rust/src/replay.rs @@ -148,6 +148,9 @@ impl INode for ReplayPlayback { character.queue_free(); self.player_characters.remove(&id); } + if let Some(mut ball) = self.ball.take() { + ball.queue_free(); + } } }