minor simplifications
This commit is contained in:
@@ -135,10 +135,8 @@ void Sprite::UnloadTexture()
|
|||||||
|
|
||||||
bool Sprite::LoadTexture( CString sTexturePath, bool bForceReload, int iMipMaps, int iAlphaBits, bool bDither, bool bStretch )
|
bool Sprite::LoadTexture( CString sTexturePath, bool bForceReload, int iMipMaps, int iAlphaBits, bool bDither, bool bStretch )
|
||||||
{
|
{
|
||||||
if( m_pTexture != NULL ) // If there was a previous bitmap...
|
|
||||||
UnloadTexture();
|
UnloadTexture();
|
||||||
|
|
||||||
|
|
||||||
m_sTexturePath = sTexturePath;
|
m_sTexturePath = sTexturePath;
|
||||||
|
|
||||||
m_pTexture = TEXTUREMAN->LoadTexture( m_sTexturePath, bForceReload, iMipMaps, iAlphaBits, bDither, bStretch );
|
m_pTexture = TEXTUREMAN->LoadTexture( m_sTexturePath, bForceReload, iMipMaps, iAlphaBits, bDither, bStretch );
|
||||||
@@ -156,7 +154,7 @@ bool Sprite::LoadTexture( CString sTexturePath, bool bForceReload, int iMipMaps,
|
|||||||
m_iNumStates = i+1;
|
m_iNumStates = i+1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user