Further tweaks to snap turns.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aba63ebb19
commit
37d0f0fcde
|
@ -71,26 +71,6 @@ fn movement_controls<S, A: 'static>(
|
||||||
query.iter_mut()
|
query.iter_mut()
|
||||||
{
|
{
|
||||||
if **snapping {
|
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)) = (
|
if let (Some(_), Some(rotate_left), Some(rotate_right)) = (
|
||||||
rotation_speed,
|
rotation_speed,
|
||||||
config.action_rotate_left.clone(),
|
config.action_rotate_left.clone(),
|
||||||
|
@ -104,6 +84,7 @@ fn movement_controls<S, A: 'static>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
**snapping = false;
|
**snapping = false;
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
let sprinting = if let Some(action) = config.action_sprint.clone() {
|
let sprinting = if let Some(action) = config.action_sprint.clone() {
|
||||||
input.active(action)
|
input.active(action)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user