Further tweaks to snap turns.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2022-04-05 08:34:53 -05:00
parent aba63ebb19
commit 37d0f0fcde

View File

@ -71,26 +71,6 @@ fn movement_controls<S, A: 'static>(
query.iter_mut()
{
if **snapping {
if let Some(action) = config.action_forward.clone() {
if input.active(action) {
continue;
}
}
if let Some(action) = config.action_backward.clone() {
if input.active(action) {
continue;
}
}
if let Some(action) = config.action_left.clone() {
if input.active(action) {
continue;
}
}
if let Some(action) = config.action_right.clone() {
if input.active(action) {
continue;
}
}
if let (Some(_), Some(rotate_left), Some(rotate_right)) = (
rotation_speed,
config.action_rotate_left.clone(),
@ -104,6 +84,7 @@ fn movement_controls<S, A: 'static>(
}
}
**snapping = false;
continue;
} else {
let sprinting = if let Some(action) = config.action_sprint.clone() {
input.active(action)