diff options
Diffstat (limited to 'src/cell.rs')
-rw-r--r-- | src/cell.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cell.rs b/src/cell.rs index 51b68e8..b697076 100644 --- a/src/cell.rs +++ b/src/cell.rs @@ -76,10 +76,12 @@ pub fn insert(mut q: Query<(&mut Cell, &mut TextureAtlasSprite)>) { } } -pub fn start_explosion(commands: &mut Commands, mut q: Query<(Entity, &Cell), Without<Timer>>) { +pub fn start_explosion(mut commands: Commands, mut q: Query<(Entity, &Cell), Without<Timer>>) { for (entity, cell) in q.iter_mut() { if cell.occupant == Occupant::Explosion { - commands.insert(entity, (Timer::from_seconds(0.1, true),)); + commands + .entity(entity) + .insert(Timer::from_seconds(0.1, true)); } } } |