@@ -3015,25 +3015,23 @@ public static void PrecacheModelComponents(int modelIndex) {
30153015 return ;
30163016
30173017 // sounds
3018- if ( IsPC ( ) ) {
3019- ReadOnlySpan < char > name = modelinfo . GetModelName ( model ) ;
3020- if ( ! g_ModelSoundsCache . TryGetValue ( name . Hash ( ) , out _ ) ) {
3021- ReadOnlySpan < char > extension = Path . GetExtension ( name ) ;
3018+ ReadOnlySpan < char > name = modelinfo . GetModelName ( model ) ;
3019+ if ( ! g_ModelSoundsCache . TryGetValue ( name . Hash ( ) , out _ ) ) {
3020+ ReadOnlySpan < char > extension = Path . GetExtension ( name ) ;
30223021
3023- if ( ! stristr ( extension , "mdl" ) . IsEmpty )
3024- DevMsg ( 2 , $ "Late precache of { name } , need to rebuild modelsounds.cache\n ") ;
3025- else {
3026- if ( extension [ 0 ] == '\0 ' )
3027- Warning ( $ "Precache of { name } ambigious (no extension specified)\n ") ;
3028- else
3029- Warning ( $ "Late precache of { name } (file missing?)\n ") ;
3030- return ;
3031- }
3022+ if ( ! stristr ( extension , "mdl" ) . IsEmpty )
3023+ DevMsg ( 2 , $ "Late precache of { name } , need to rebuild modelsounds.cache\n ") ;
3024+ else {
3025+ if ( extension [ 0 ] == '\0 ' )
3026+ Warning ( $ "Precache of { name } ambigious (no extension specified)\n ") ;
3027+ else
3028+ Warning ( $ "Late precache of { name } (file missing?)\n ") ;
3029+ return ;
30323030 }
3033-
3034- if ( g_ModelSoundsCache . TryGetValue ( name . Hash ( ) , out ModelSoundsCache ? entry ) )
3035- entry . PrecacheSoundList ( ) ;
30363031 }
3032+
3033+ if ( g_ModelSoundsCache . TryGetValue ( name . Hash ( ) , out ModelSoundsCache ? entry ) )
3034+ entry . PrecacheSoundList ( ) ;
30373035 }
30383036
30393037 static readonly Dictionary < UtlSymId_t , ModelSoundsCache > g_ModelSoundsCache = [ ] ;
0 commit comments