summaryrefslogtreecommitdiff
path: root/src/sim/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/lib')
-rw-r--r--src/sim/lib/components.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/lib/components.rs b/src/sim/lib/components.rs
index f1c34ac..d43a567 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,