attempt to update the openportal builtin to work with q3 as well.

ignore sound() calls with empty sound names.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4675 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-05-30 18:04:51 +00:00
parent 50f80352c3
commit c841b4fbd1
4 changed files with 54 additions and 7 deletions

View file

@ -985,7 +985,7 @@ void SV_StartSound (int ent, vec3_t origin, int seenmask, int channel, const cha
// find precache number for sound
if (!*sample)
sound_num = 0;
return;
else
{
for (sound_num=1 ; sound_num<MAX_SOUNDS