From b8132bc876fc53df0b948cee7c1f8b34d634c18c Mon Sep 17 00:00:00 2001 From: luckyturtledev Date: Sat, 6 Jul 2024 22:39:02 +0200 Subject: [PATCH] fix more ghosts --- src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 364602a..7de61ee 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -14,8 +14,8 @@ pub fn draw(state: &State, _engine: &EngineContext<'_>) { start_positon.y += 0.5 * section_size.y + 0.5 * section_size.y; // draw fill level { - let gohst = &state.ghost; - let percent = gohst.charge / gohst.max_charge; + let ghost = &state.ghost; + let percent = ghost.charge / ghost.max_charge; let mut size = section_size; size.y = section_size.y * section_count as f32 * percent; let mut position = start_positon;