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) {