From 348e36bd607ec6abd4e69e66967be959de43cbc3 Mon Sep 17 00:00:00 2001 From: mittorn Date: Tue, 14 Aug 2018 01:53:03 +0700 Subject: [PATCH] Fix mdl/spr check condition --- dlls/enttools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/enttools.cpp b/dlls/enttools.cpp index 1e41d232..485e89d9 100644 --- a/dlls/enttools.cpp +++ b/dlls/enttools.cpp @@ -476,7 +476,7 @@ bool Ent_CheckModel( const char *model ) if( submodel < 1 || world && submodel >= world->numsubmodels ) return false; } // do not allow to set different model types. bsp models will destroy all submodels on map - else if( !strstr( model, ".mdl" ) || !strstr( model, ".spr" ) ) + else if( !strstr( model, ".mdl" ) && !strstr( model, ".spr" ) ) return false; return true; }