fix bSoundPreloadAll

(this makes the music wheel very slow; need a better mode, to only allow
streaming one file at a time)
This commit is contained in:
Glenn Maynard
2003-04-07 00:00:46 +00:00
parent ee6034ebeb
commit 1bfbc25bbf
+2 -1
View File
@@ -45,7 +45,8 @@ bool SoundReader_Preload::Open(SoundReader *source)
/* Add the buffer. */
buf.get_owned().append(buffer, buffer+cnt);
if(buf.get_owned().size() > max_prebuf_size)
if(!PREFSMAN->m_bSoundPreloadAll &&
buf.get_owned().size() > max_prebuf_size)
return false; /* too big */
}