From 0657a59c69edc0dce00566d23269183b1b4f03ca Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Fri, 17 May 2024 21:21:03 +0200 Subject: [PATCH] Don't try to cache models by the new model* keywords --- neo/d3xp/Game_local.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/d3xp/Game_local.cpp b/neo/d3xp/Game_local.cpp index 7dbe4713..cdf05d86 100644 --- a/neo/d3xp/Game_local.cpp +++ b/neo/d3xp/Game_local.cpp @@ -1883,7 +1883,9 @@ void idGameLocal::CacheDictionaryMedia( const idDict* dict ) kv = dict->MatchPrefix( "model" ); while( kv ) { - if( kv->GetValue().Length() ) + const char* modelKey = kv->GetKey().c_str(); + + if( kv->GetValue().Length() && idStr::Icmp( modelKey, "modelTarget" ) != 0 && idStr::Icmpn( modelKey, "modelscale", 10 ) != 0 ) { declManager->MediaPrint( "Precaching model %s\n", kv->GetValue().c_str() );