mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
Fix some codacy detected issues
This commit is contained in:
parent
e69d69cfab
commit
603389992d
5 changed files with 17 additions and 17 deletions
|
|
@ -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); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue