Fix some codacy detected issues

This commit is contained in:
H0zen 2018-04-12 21:59:49 +01:00 committed by Antz
parent e69d69cfab
commit 603389992d
5 changed files with 17 additions and 17 deletions

View file

@ -1540,7 +1540,7 @@ bool ScriptAction::HandleScriptStep()
if (m_script->playSound.flags & 2)
{ pSource->PlayDistanceSound(m_script->playSound.soundId, pSoundTarget); }
else if (m_script->playSound.flags & (4 | 8))
{ m_map->PlayDirectSoundToMap(m_script->playSound.soundId, m_script->playSound.flags & 8 ? pSource->GetZoneId() : 0); }
{ m_map->PlayDirectSoundToMap(m_script->playSound.soundId, (m_script->playSound.flags & 8) ? pSource->GetZoneId() : 0); }
else
{ pSource->PlayDirectSound(m_script->playSound.soundId, pSoundTarget); }
}