diff --git a/src/entities/weapons/speargun.rs b/src/entities/weapons/speargun.rs index 91b6c8b..89b20aa 100644 --- a/src/entities/weapons/speargun.rs +++ b/src/entities/weapons/speargun.rs @@ -3,7 +3,6 @@ use std::time::Duration; use bevy::prelude::*; use crate::entities::{ - characters::enemy::{Enemy, EnemyHitEvent}, player::Player, }; use crate::{loading::StaticSpriteAssets, GameState}; @@ -98,7 +97,7 @@ fn control( angle = -0.1; } - transform.rotation = transform.rotation * Quat::from_rotation_z(angle); + transform.rotation *= Quat::from_rotation_z(angle); } } diff --git a/src/main.rs b/src/main.rs index c754233..9640fa1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ use pecs::prelude::*; use cutscene::*; use loading::*; use menu::*; -use postprocessing::{PostProcessPlugin, PostProcessSettings}; +use postprocessing::{PostProcessSettings}; mod audio; mod controls;