Use precache_generic() for sounds that are played client-side (#934)

This commit is contained in:
OciXCrom
2021-09-17 13:10:46 +02:00
committed by GitHub
parent 3289b3c63c
commit 01e60834fa
6 changed files with 46 additions and 54 deletions

View File

@ -377,7 +377,7 @@ precache_sound_custom( const sound[] )
formatex(fullpathsound, charsmax(fullpathsound), "sound/%s.wav", sound)
if( file_exists(fullpathsound) )
{
precache_sound(fullpathsound[6])
precache_generic(fullpathsound)
}
else
{