Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed May 21, 2024
1 parent 0f0ccd5 commit f9db54f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,7 @@ fn main() {
.run_if(in_state(AppState::InGame)),
)
// sound system
.add_systems(
Update,
systems::sound::update,
)
.add_systems(Update, systems::sound::update)
// AppState::Splash
.add_systems(OnEnter(AppState::Splash), systems::menu::setup)
.add_systems(
Expand Down
5 changes: 3 additions & 2 deletions src/systems/life.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ pub fn run(mut commands: Commands, mut session: ResMut<SessionResource>) {
}
}
}
} else if session.counter > 1 { // while there is life
} else if session.counter > 1 {
// while there is life
let last_gen: Vec<Vec<Vec<Vec<LifeDataContainer>>>> = session.life.clone();

/*
Expand Down Expand Up @@ -837,7 +838,7 @@ pub fn run(mut commands: Commands, mut session: ResMut<SessionResource>) {
}
}
}

session.generation += 1;
}

Expand Down

0 comments on commit f9db54f

Please sign in to comment.