simplify
This commit is contained in:
@@ -140,9 +140,7 @@ void BGAnimation::LoadFromAniDir( CString sAniDir )
|
||||
for( unsigned i=0; i<asImagePaths.size(); i++ )
|
||||
{
|
||||
const CString sPath = asImagePaths[i];
|
||||
CString sDir, sFName, sExt;
|
||||
splitrelpath( sPath, sDir, sFName, sExt );
|
||||
if( sFName.Left(1) == "_" )
|
||||
if( Basename(sPath).Left(1) == "_" )
|
||||
continue; // don't directly load files starting with an underscore
|
||||
BGAnimationLayer* pLayer = new BGAnimationLayer;
|
||||
pLayer->LoadFromAniLayerFile( asImagePaths[i] );
|
||||
|
||||
Reference in New Issue
Block a user