Removed warnings
This commit is contained in:
parent
8c7450d03f
commit
26d03de52e
@ -1,5 +1,5 @@
|
|||||||
use bevy::prelude::*;
|
use bevy::prelude::*;
|
||||||
use bevy_rapier3d::{prelude::*, rapier::prelude::IntegrationParameters};
|
use bevy_rapier3d::prelude::*;
|
||||||
use crate::comps::core::markers::{muzzle_flash::MuzzleFlashMarker, bullet::BulletMarker};
|
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>) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
//_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if bullet.timer.finished() {
|
if bullet.timer.finished() {
|
||||||
|
@ -109,7 +109,7 @@ pub fn follow_cursor_with_camera(
|
|||||||
if window.cursor.grab_mode != CursorGrabMode::None {
|
if window.cursor.grab_mode != CursorGrabMode::None {
|
||||||
for mut player_transform in player_query.iter_mut() {
|
for mut player_transform in player_query.iter_mut() {
|
||||||
let (mut yaw, mut pitch, _) = player_transform.rotation.to_euler(EulerRot::YXZ);
|
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());
|
let window_scale = window.height().min(window.width());
|
||||||
if btn.pressed(MouseButton::Right) {
|
if btn.pressed(MouseButton::Right) {
|
||||||
pitch -= ((settings.aimed_sensitivity * motion.delta.y as f64 * window_scale as f64) as f32)
|
pitch -= ((settings.aimed_sensitivity * motion.delta.y as f64 * window_scale as f64) as f32)
|
||||||
|
Loading…
Reference in New Issue
Block a user