Merge pull request #711 from Azaezel/alpha40/audioWork

fix ServerPlaySound
This commit is contained in:
Brian Roberts 2021-12-16 18:25:28 -06:00 committed by GitHub
commit d9bedbe31c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,5 +43,5 @@ function ServerPlaySound(%profile,%pos)
// Play the given sound profile at the given position on every client
// The sound will be transmitted as an event, not attached to any object.
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
commandToClient(ClientGroup.getObject(%idx), PlaySound, %pos);
commandToClient(ClientGroup.getObject(%idx), 'PlaySound',%profile, %pos);
}