From 06e8f8f93deff9d2f29a6f5892ed871eaa2e0609 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 1 Jul 2006 12:10:29 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/sounds.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/sounds.c b/polymer/eduke32/source/sounds.c index ad4cf242b..0e1168781 100644 --- a/polymer/eduke32/source/sounds.c +++ b/polymer/eduke32/source/sounds.c @@ -629,7 +629,10 @@ int isspritemakingsound(short i, int num) int issoundplaying(short i, int num) { - if(i == -1) - return (Sound[num].lock != 199); + if(i == -1) { + if(Sound[num].lock == 200) + return 1; + else return 0; + } else return (Sound[num].num); }