Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Jun 7, 2024
1 parent ffb85c8 commit f7ffdc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/entities/weapons/speargun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,7 @@ fn rotate_speargun(
for (mut transform, mut sprite, _) in q_speargun.iter_mut() {
transform.rotation = Quat::from_rotation_z(angle);

if angle.abs() >= FRAC_PI_2 {
sprite.flip_y = true;
} else {
sprite.flip_y = false;
}
sprite.flip_y = angle.abs() >= FRAC_PI_2;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use pecs::prelude::*;
use cutscene::*;
use loading::*;
use menu::*;
use postprocessing::{PostProcessPlugin, PostProcessSettings};
use postprocessing::{PostProcessSettings};

mod audio;
mod controls;
Expand Down

0 comments on commit f7ffdc5

Please sign in to comment.