diff options
Diffstat (limited to 'src/sim/lib/components.rs')
| -rw-r--r-- | src/sim/lib/components.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/lib/components.rs b/src/sim/lib/components.rs index d43a567..ac62366 100644 --- a/src/sim/lib/components.rs +++ b/src/sim/lib/components.rs @@ -111,7 +111,7 @@ pub fn compute_components(cells: &[Cell], w: i32, h: i32) -> Vec<PositionedCompo as usize] = old_cell.cell; } - let pc_centre = (c.bounds[0] + c.bounds[1] + IVec2::ONE).as_vec2() / 2.0 ; + let pc_centre = (c.bounds[0] + c.bounds[1] + IVec2::ONE).as_vec2() / 2.0; let adjusted_pc_centre = pc_centre - (Vec2::new(w as f32, h as f32) / 2.0); let pc = PositionedComponent { position: adjusted_pc_centre, |
