mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added mounted combat
This commit is contained in:
parent
bde3aade2b
commit
2966a42093
@ -212,10 +212,11 @@ impl<'a> System<'a> for Sys {
|
||||
// If mounted, character state is controlled by mount
|
||||
if is_rider.is_some() {
|
||||
let idle_state = CharacterState::Idle(idle::Data { is_sneaking: false });
|
||||
if *join_struct.char_state != idle_state {
|
||||
*join_struct.char_state = idle_state;
|
||||
}
|
||||
continue;
|
||||
// TODO: A better way to swap between mount inputs and rider
|
||||
// inputs if *join_struct.char_state !=
|
||||
// idle_state { *join_struct.char_state =
|
||||
// idle_state; }
|
||||
// continue;
|
||||
}
|
||||
|
||||
let j = JoinData::new(
|
||||
|
Loading…
Reference in New Issue
Block a user