From e6b64e5536d4f2c611ebac26ff7982dea1ad2ed6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 17 Dec 2003 09:40:51 +0000 Subject: [PATCH] add scaletofit command --- stepmania/src/Actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index a666193191..afc1feb6f0 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -816,6 +816,7 @@ void Actor::HandleCommand( const CStringArray &asTokens ) else if( sName=="effectperiod" ) SetEffectPeriod( fParam(1) ); else if( sName=="effectmagnitude" ) SetEffectMagnitude( RageVector3(fParam(1),fParam(2),fParam(3)) ); else if( sName=="scaletocover" ) { RectI R(iParam(1), iParam(2), iParam(3), iParam(4)); ScaleToCover(R); } + else if( sName=="scaletofit" ) { RectI R(iParam(1), iParam(2), iParam(3), iParam(4)); ScaleToFitInside(R); } // Commands that take effect immediately (ignoring the tweening queue): else if( sName=="animate" ) EnableAnimation( bParam(1) ); else if( sName=="setstate" ) SetState( iParam(1) );