From 50092934048facf32d4a54e7b7edecf7e3c358af Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 22 Oct 2008 00:49:10 +0000 Subject: [PATCH] skip sounds while starting up git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3180 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/sound.cpp b/source/src/sound.cpp index 28b97cb6..408f9cc0 100644 --- a/source/src/sound.cpp +++ b/source/src/sound.cpp @@ -1740,7 +1740,7 @@ VARP(maxsoundsatonce, 0, 10, 100); location *playsound(int n, const worldobjreference &r, int priority, float offset, bool loop) { - if(nosound || !soundvol) return NULL; + if(nosound || !soundvol || !totalmillis) return NULL; DEBUGVAR(n); DEBUGVAR(priority);