mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-09 05:24:17 +00:00
Fix mdl/spr check condition
This commit is contained in:
parent
b747a52f79
commit
348e36bd60
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user