yuck. ActorScroller doesn't need UseScroller, but BGAnimation does. Move
the hack into BGAnimation, which is on its way out anyway.
This commit is contained in:
@@ -149,8 +149,12 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir )
|
||||
|
||||
void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||
{
|
||||
ActorScrollerAutoDeleteChildren::LoadFromNode( sDir, pNode );
|
||||
|
||||
bool bUseScroller = false;
|
||||
pNode->GetAttrValue( "UseScroller", bUseScroller );
|
||||
if( bUseScroller )
|
||||
ActorScrollerAutoDeleteChildren::LoadFromNode( sDir, pNode );
|
||||
else
|
||||
ActorFrame::LoadFromNode( sDir, pNode );
|
||||
|
||||
/* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy
|
||||
* actor that sleeps for the given length of time. This will extend GetTweenTimeLeft. */
|
||||
|
||||
Reference in New Issue
Block a user