fix more ghosts
All checks were successful
Rust / rustfmt (pull_request) Successful in 19s
Rust / clippy (pull_request) Successful in 1m0s
Rust / build (pull_request) Successful in 2m7s

This commit is contained in:
luckyturtledev 2024-07-06 22:39:02 +02:00
parent f1af8c80a3
commit b8132bc876

View file

@ -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;