summaryrefslogtreecommitdiff
path: root/src/sim/lib
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2026-09-03 20:51:01 -0700
committerKai Stevenson <kai@kaistevenson.com>2026-09-03 20:51:01 -0700
commit8a49bc98a8be81d38cfd11b88e269797048256e4 (patch)
tree9befa1a4a3fa172ef090bc06319ec9ee055cc749 /src/sim/lib
parenta4ff77cef3e83fbff1a067efefa22d8c44505b5b (diff)
character interactions with entities
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 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,