ticker awaits an empty particle queue
This commit is contained in:
parent
9427ebd7c1
commit
b5c4cb1fb5
2 changed files with 9 additions and 1 deletions
|
|
@ -269,7 +269,7 @@ impl GameState for State {
|
|||
}
|
||||
}
|
||||
RunState::Ticking => {
|
||||
while new_runstate == RunState::Ticking {
|
||||
while new_runstate == RunState::Ticking && particle_system::check_queue(&self.ecs) {
|
||||
self.run_systems();
|
||||
self.ecs.maintain();
|
||||
try_spawn_interval(&mut self.ecs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue