mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove excess code
This commit is contained in:
parent
180ec89060
commit
3ae2b8de2e
@ -138,16 +138,6 @@ pub fn handle_unwield(data: &JoinData, update: &mut StateUpdate) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Checks that player can Swap and updates Loadout
|
||||
pub fn handle_swap_loadout(data: &JoinData, update: &mut StateUpdate) {
|
||||
if let CharacterState::Wielding { .. } = update.character {
|
||||
if data.inputs.swap_loadout.is_pressed() {
|
||||
//TODO
|
||||
println!("YAH NAH");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Checks that player can glide and updates `CharacterState` if so
|
||||
pub fn handle_glide(data: &JoinData, update: &mut StateUpdate) {
|
||||
if let CharacterState::Idle { .. } | CharacterState::Wielding { .. } = update.character {
|
||||
|
@ -319,11 +319,10 @@ impl PlayState for SessionState {
|
||||
Event::InputUpdate(GameInput::WallLeap, state) => {
|
||||
self.inputs.wall_leap.set_state(state)
|
||||
},
|
||||
// Event::InputUpdate(GameInput::ToggleWield, state) => {
|
||||
// self.inputs.toggle_wield.set_state(state);
|
||||
// },
|
||||
Event::InputUpdate(GameInput::ToggleWield, state)
|
||||
| Event::InputUpdate(GameInput::SwapLoadout, state) => {
|
||||
Event::InputUpdate(GameInput::ToggleWield, state) => {
|
||||
self.inputs.toggle_wield.set_state(state);
|
||||
},
|
||||
Event::InputUpdate(GameInput::SwapLoadout, state) => {
|
||||
let mut client = self.client.borrow_mut();
|
||||
let entity = client.entity();
|
||||
let loadout = client
|
||||
|
Loading…
Reference in New Issue
Block a user