From 0276234c5640be7de637c18676fcbebb2770c27c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 23 Aug 2002 08:26:11 +0000 Subject: [PATCH] minor simplifications --- stepmania/src/Sprite.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index f7b6fe9ea5..64e6dffa2e 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -135,9 +135,7 @@ void Sprite::UnloadTexture() 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; @@ -156,7 +154,7 @@ bool Sprite::LoadTexture( CString sTexturePath, bool bForceReload, int iMipMaps, m_iNumStates = i+1; } - return TRUE; + return true; }