Update torchlight_changes_unloze/torchlight3/Torchlight/AudioManager.py
This commit is contained in:
parent
597e4250aa
commit
6f7da0efd3
@ -272,12 +272,9 @@ class AudioManager():
|
||||
return True
|
||||
|
||||
def Stop(self, player, extra):
|
||||
ExtraFilter = extra.strip().lower() if isinstance(extra, str) else ""
|
||||
Result = {"matched": 0, "stopped": 0, "pending": 0}
|
||||
|
||||
for AudioClip in self.AudioClips[:]:
|
||||
if ExtraFilter and ExtraFilter not in AudioClip.Player.Name.lower():
|
||||
continue
|
||||
Result["matched"] += 1
|
||||
|
||||
AudioClip.Stop()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user