From 2409da8fed852065ba3a9f60c1dba08742be0173 Mon Sep 17 00:00:00 2001 From: yuni Date: Sat, 5 Oct 2024 03:03:19 +0200 Subject: [PATCH] cleanup --- src/actor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actor.rs b/src/actor.rs index 781ac28..0741bdf 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -696,7 +696,7 @@ fn handle_wants_maxvelocity( } fn handle_wants_lookat( - mut query: Query<(&Position, &mut Rotation, &Transform, &WantsToLookAt), Without>, + mut query: Query<(&Position, &mut Rotation, &WantsToLookAt), Without>, q_playercam: Query<&Position, With>, q_cam: Query<&Transform, With>, id2pos: Res, @@ -713,7 +713,7 @@ fn handle_wants_lookat( }; // TODO: use ExternalTorque rather than hard-resetting the rotation - for (pos, mut rot, trans, target_id) in &mut query { + for (pos, mut rot, target_id) in &mut query { let target_pos: DVec3 = if target_id.0 == cmd::ID_SPECIAL_PLAYERCAM { cam_pos } else if let Some(target_pos) = id2pos.0.get(&target_id.0) {