summaryrefslogtreecommitdiff
path: root/src/sim/cell/materials/powder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/cell/materials/powder.rs')
-rw-r--r--src/sim/cell/materials/powder.rs8
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),
- ]);
+ ])
}