cleanups
This commit is contained in:
@@ -83,7 +83,7 @@ void ComboGraph::Load( const StageStats &s, const PlayerStageStats &pss )
|
||||
if( !bIsMax )
|
||||
continue;
|
||||
|
||||
BitmapText *pText = dynamic_cast<BitmapText*>( m_pMaxComboText->Copy() ); // XXX Copy should be covariant
|
||||
BitmapText *pText = m_pMaxComboText->Copy();
|
||||
|
||||
const float fStart = SCALE( combo.fStartSecond, fFirstSecond, fLastSecond, 0.0f, 1.0f );
|
||||
const float fSize = SCALE( combo.fSizeSeconds, 0, fLastSecond-fFirstSecond, 0.0f, 1.0f );
|
||||
|
||||
@@ -325,7 +325,7 @@ void ScreenTextEntryVisual::Init()
|
||||
for( int x=0; x<KEYS_PER_ROW; ++x )
|
||||
{
|
||||
BitmapText *&pbt = m_ptextKeys[r][x];
|
||||
pbt = dynamic_cast<BitmapText *>( text.Copy() ); // XXX: Copy() should be covariant
|
||||
pbt = text.Copy();
|
||||
this->AddChild( pbt );
|
||||
|
||||
RString s = g_szKeys[r][x];
|
||||
|
||||
@@ -60,8 +60,7 @@ void WheelBase::Load( RString sType )
|
||||
ActorUtil::LoadAllCommands( *pTempl, m_sName );
|
||||
for( int i=0; i<NUM_WHEEL_ITEMS; i++ )
|
||||
{
|
||||
Actor *pActor = pTempl->Copy();
|
||||
WheelItemBase *pItem = dynamic_cast<WheelItemBase *>( pActor ); // XXX: ugly cast
|
||||
WheelItemBase *pItem = pTempl->Copy();
|
||||
DEBUG_ASSERT( pItem );
|
||||
m_WheelBaseItems.push_back( pItem );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user