cleanup
This commit is contained in:
parent
f0739606ad
commit
349e38e848
|
@ -54,7 +54,6 @@ fn run_camera_controller(
|
||||||
&mut Transform,
|
&mut Transform,
|
||||||
&mut CameraController,
|
&mut CameraController,
|
||||||
&mut Projection,
|
&mut Projection,
|
||||||
&mut actor::Actor,
|
|
||||||
&actor::LifeForm,
|
&actor::LifeForm,
|
||||||
&mut actor::Engine,
|
&mut actor::Engine,
|
||||||
&mut AngularVelocity,
|
&mut AngularVelocity,
|
||||||
|
@ -70,7 +69,7 @@ fn run_camera_controller(
|
||||||
focused = window_result.unwrap().focused;
|
focused = window_result.unwrap().focused;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok((mut transform, mut controller, mut projection, mut actor, lifeform, player_engine, mut angularvelocity, mut v)) = query.get_single_mut() {
|
if let Ok((mut transform, mut controller, mut projection, lifeform, player_engine, mut angularvelocity, mut v)) = query.get_single_mut() {
|
||||||
if !controller.initialized {
|
if !controller.initialized {
|
||||||
controller.initialized = true;
|
controller.initialized = true;
|
||||||
transform.rotation =
|
transform.rotation =
|
||||||
|
|
Loading…
Reference in a new issue