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:
Forest Anderson 2020-03-01 19:45:05 +00:00
commit e89810e0a1

View File

@ -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;