don't read unused DifficultiesToShow in ScreenDemonstration

This commit is contained in:
Chris Danford
2005-06-05 12:02:33 +00:00
parent 101b27accb
commit dc82519d3f
+2 -2
View File
@@ -25,8 +25,7 @@
REGISTER_SCREEN_CLASS( ScreenJukebox );
void ScreenJukebox::SetSong()
{
ThemeMetric<float> ALLOW_ADVANCED_MODIFIERS(m_sName,"AllowAdvancedModifiers");
ThemeMetricDifficultiesToShow DIFFICULTIES_TO_SHOW_HERE(m_sName,"DifficultiesToShow");
ThemeMetric<bool> ALLOW_ADVANCED_MODIFIERS(m_sName,"AllowAdvancedModifiers");
vector<Song*> vSongs;
@@ -49,6 +48,7 @@ void ScreenJukebox::SetSong()
if( m_bDemonstration )
{
// HACK: This belongs in ScreenDemonstration
ThemeMetricDifficultiesToShow DIFFICULTIES_TO_SHOW_HERE(m_sName,"DifficultiesToShow");
vDifficultiesToShow = DIFFICULTIES_TO_SHOW_HERE.GetValue();
}
else