From 0b03fffc076f1511f5dc26dc9449ddda0ccf6d5c Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 23 Mar 2007 13:47:25 +0000 Subject: [PATCH] Let sprites disable the odd dimension warning. --- stepmania/src/Sprite.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 00e5a9c827..c62a188aa6 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -116,6 +116,11 @@ 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 @@ -207,6 +212,8 @@ void Sprite::LoadFromNode( const XNode* pNode ) } } + if( bDisableDimensionWarning ) + TEXTUREMAN->EnableOddDimensionWarning(); Actor::LoadFromNode( pNode ); }