Skip to content

Commit

Permalink
Cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 25, 2024
1 parent 39b4791 commit 4acba8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ impl Plugin for DebugPlugin {
app.add_systems(
Update,
(
//render_dirty_rects.after(update_actors),
render_dirty_rects.after(update_actors),
brush.after(chunk_manager_update),
//render_actors.after(update_actors),
render_actors.after(update_actors),
prev_mpos.after(brush),
//_camera
)
Expand Down
2 changes: 1 addition & 1 deletion src/rigidbody.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn fill_rigidbodies(
let pos = vec2(x as f32 - width as f32 / 2., y as f32 - height as f32 / 2.) + off;
let chunk_pos = global_to_chunk(pos.as_ivec2());

let rotated_atom = rotated[y as usize * width as usize + x as usize];
let rotated_atom = rotated[y * width + x];
if materials[rotated_atom.id].is_solid() {
if let Some(atom) = chunk_manager.get_mut_atom(chunk_pos) {
if materials[atom.id].is_void() {
Expand Down

0 comments on commit 4acba8e

Please sign in to comment.