minor simplifications

This commit is contained in:
Glenn Maynard
2002-08-23 08:26:11 +00:00
parent 55ad6158a6
commit 0276234c56
+1 -3
View File
@@ -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;
} }