mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'shandley/no-wield-sfx-rolling' into 'master'
No wield/unwield sfx when rolling Closes #507 See merge request veloren/veloren!830
This commit is contained in:
commit
e89810e0a1
@ -157,10 +157,11 @@ impl MovementEventMapper {
|
||||
{
|
||||
if let Some(wield_event) = match (
|
||||
previous_event.weapon_drawn,
|
||||
current_event.action.is_roll(),
|
||||
Self::has_weapon_drawn(current_event.action),
|
||||
) {
|
||||
(false, true) => Some(SfxEvent::Wield(kind)),
|
||||
(true, false) => Some(SfxEvent::Unwield(kind)),
|
||||
(false, false, true) => Some(SfxEvent::Wield(kind)),
|
||||
(true, false, false) => Some(SfxEvent::Unwield(kind)),
|
||||
_ => None,
|
||||
} {
|
||||
return wield_event;
|
||||
|
Loading…
Reference in New Issue
Block a user