diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index c62a188aa6..a059a7889b 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -116,11 +116,6 @@ void Sprite::LoadFromNode( const XNode* pNode ) if( !sPath.empty() && !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) ) ActorUtil::GetAttrPath( pNode, "Texture", sPath ); - // HACK. Let Sprites explicitly disable the dimension warning. - bool bDisableDimensionWarning = false; - if( pNode->GetAttrValue("DisableDimensionWarning", bDisableDimensionWarning) && bDisableDimensionWarning ) - TEXTUREMAN->DisableOddDimensionWarning(); - if( !sPath.empty() ) { // Load the texture @@ -212,9 +207,6 @@ void Sprite::LoadFromNode( const XNode* pNode ) } } - if( bDisableDimensionWarning ) - TEXTUREMAN->EnableOddDimensionWarning(); - Actor::LoadFromNode( pNode ); } @@ -978,7 +970,9 @@ public: static int LoadBackground( T* p, lua_State *L ) { RageTextureID ID( SArg(1) ); + TEXTUREMAN->DisableOddDimensionWarning(); p->Load( Sprite::SongBGTexture(ID) ); + TEXTUREMAN->EnableOddDimensionWarning(); return 1; } static int LoadBanner( T* p, lua_State *L )