mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix GlideWield overriding state changes
This commit is contained in:
parent
2165fc7d2e
commit
eddc967462
@ -32,6 +32,8 @@ impl CharacterBehavior for Data {
|
|||||||
handle_dodge_input(data, &mut update);
|
handle_dodge_input(data, &mut update);
|
||||||
handle_wield(data, &mut update);
|
handle_wield(data, &mut update);
|
||||||
|
|
||||||
|
// If still in this state, do the things
|
||||||
|
if matches!(update.character, CharacterState::GlideWield(_)) {
|
||||||
let mut glider = self.0;
|
let mut glider = self.0;
|
||||||
glider.ori = glider.ori.slerped_towards(
|
glider.ori = glider.ori.slerped_towards(
|
||||||
Ori::from(data.inputs.look_dir)
|
Ori::from(data.inputs.look_dir)
|
||||||
@ -55,6 +57,7 @@ impl CharacterBehavior for Data {
|
|||||||
} else {
|
} else {
|
||||||
CharacterState::GlideWield(Self(glider))
|
CharacterState::GlideWield(Self(glider))
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
update
|
update
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user