diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-24 20:15:21 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-24 20:15:21 -0700 |
| commit | e28f8b4ef5c0744912afd49d8d1ba9a94e144613 (patch) | |
| tree | a38fe431647834ea21ddd03984e41e5d00c32d50 /src/sim/particle_manager | |
| parent | 3bae37a2d439804aee543473ef9b44f18692a67f (diff) | |
fixes for small entities
Diffstat (limited to 'src/sim/particle_manager')
| -rw-r--r-- | src/sim/particle_manager/mod.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/sim/particle_manager/mod.rs b/src/sim/particle_manager/mod.rs index 559bf2c..afebd4b 100644 --- a/src/sim/particle_manager/mod.rs +++ b/src/sim/particle_manager/mod.rs @@ -64,13 +64,10 @@ impl ParticleManager { ] .contains(&cell.material.def().form) { + let mut cell = Cell::from_material(p.material); + cell.match_parity(world.seqno); // write ourselves to the board - world.set_cell_from_game_position( - prev.x, - prev.y, - Cell::from_material(p.material), - false, - ); + world.set_cell_from_game_position(prev.x, prev.y, cell, false); self.particles.swap_remove(i); continue 'outer; } |
