Skip to content

Commit

Permalink
updated deps and fixed entity leak bug (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
minghuaw authored May 18, 2022
1 parent c4a0fa4 commit cc05692
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
{
"editor.formatOnSave": true
}
25 changes: 17 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.8.9"
assert_approx_eq = "1.1.0"
nalgebra = { version = "0.29.0", features = ["serde-serialize"] }
nalgebra = { version = "^0.31.0", features = ["serde-serialize"] }
csv = "1.1"
byteorder = "1.3.2"
multimap = "0.8.2"
hashbrown = { version = "0.11.2", features = ["rayon"] }
hashbrown = { version = "^0.12.1", features = ["rayon"] }
serde_arrays = "0.1.0"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/atom_sources/oven.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ impl<'a, T> System<'a> for OvenCreateAtomsSystem<T> where T : AtomCreator + 'sta
continue;
}

let new_atom = entities.create();
let (new_vel, theta) =
velocity_generate(speed, &oven.direction, &oven.theta_distribution);

if theta > oven.max_theta {
continue;
}
let new_atom = entities.create();
let start_position = oven_position.pos + oven.get_random_spawn_position();
updater.insert(
new_atom,
Expand Down

0 comments on commit cc05692

Please sign in to comment.