This commit is contained in:
Glenn Maynard
2006-10-20 00:22:16 +00:00
parent cd3f228338
commit f2e89da415
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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 );
+1 -1
View File
@@ -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];
+1 -2
View File
@@ -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 );
}