diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-22 13:54:00 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-22 13:54:00 -0700 |
| commit | 6350e4ffca8ce1e46465284ef3d7559e0f40229b (patch) | |
| tree | 597bd17cc5c86d7271fea5abba4495fb58b4d7c2 /src/sim/cell/materials/powder.rs | |
| parent | 21f6ee0be48f83db3a0052269cfc47ac73dc64f9 (diff) | |
fixes and refactors
Diffstat (limited to 'src/sim/cell/materials/powder.rs')
| -rw-r--r-- | src/sim/cell/materials/powder.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sim/cell/materials/powder.rs b/src/sim/cell/materials/powder.rs index d2d1265..e08ea1f 100644 --- a/src/sim/cell/materials/powder.rs +++ b/src/sim/cell/materials/powder.rs @@ -1,10 +1,10 @@ -use crate::sim::cell_sim::sim::UpdateCtx; +use crate::sim::cell_sim::sim::{PostUpdateAction, UpdateCtx}; #[inline] -pub fn sim_update(ctx: &mut UpdateCtx) { - ctx.candidates_swap(&[ +pub fn sim_update(ctx: &mut UpdateCtx) -> PostUpdateAction { + ctx.swap_or_settle(&[ (0, 1), (-1 + 2 * ctx.seqno_parity as i32, 1), (1 - 2 * ctx.seqno_parity as i32, 1), - ]); + ]) } |
