Removed warnings

This commit is contained in:
Franklin 2023-11-11 14:04:09 -04:00
parent 8c7450d03f
commit 26d03de52e
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
use bevy::prelude::*;
use bevy_rapier3d::{prelude::*, rapier::prelude::IntegrationParameters};
use bevy_rapier3d::prelude::*;
use crate::comps::core::markers::{muzzle_flash::MuzzleFlashMarker, bullet::BulletMarker};
pub fn despawn_muzzle_flashes(mut commands: Commands, mut query: Query<(&mut MuzzleFlashMarker, Entity)>, time: Res<Time>) {
@ -47,7 +47,7 @@ pub fn despawn_stray_bullets(
continue;
}
}
_ => {}
//_ => {}
}
}
if bullet.timer.finished() {

View File

@ -109,7 +109,7 @@ pub fn follow_cursor_with_camera(
if window.cursor.grab_mode != CursorGrabMode::None {
for mut player_transform in player_query.iter_mut() {
let (mut yaw, mut pitch, _) = player_transform.rotation.to_euler(EulerRot::YXZ);
for motion in motions.iter() {
for motion in motions.read() {
let window_scale = window.height().min(window.width());
if btn.pressed(MouseButton::Right) {
pitch -= ((settings.aimed_sensitivity * motion.delta.y as f64 * window_scale as f64) as f32)