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:
terminx 2006-07-01 12:10:29 +00:00
parent 7c05f3eea6
commit 06e8f8f93d

View file

@ -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);
} }