mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix an infinite loop on architectures with no sound support, but with sound configured in the cfg
git-svn-id: https://svn.eduke32.com/eduke32@198 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7c05f3eea6
commit
06e8f8f93d
1 changed files with 5 additions and 2 deletions
|
@ -629,7 +629,10 @@ int isspritemakingsound(short i, int num)
|
||||||
|
|
||||||
int issoundplaying(short i, int num)
|
int issoundplaying(short i, int num)
|
||||||
{
|
{
|
||||||
if(i == -1)
|
if(i == -1) {
|
||||||
return (Sound[num].lock != 199);
|
if(Sound[num].lock == 200)
|
||||||
|
return 1;
|
||||||
|
else return 0;
|
||||||
|
}
|
||||||
else return (Sound[num].num);
|
else return (Sound[num].num);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue