If Autogen Missing Types is off, don't pick a song that doesn't have non-autogen steps for the current gametype.

This commit is contained in:
Thad Ward
2003-08-25 15:08:03 +00:00
parent 4926712fb9
commit 18ad6a4605
+4 -1
View File
@@ -19,7 +19,7 @@
#include "SDL_utils.h"
#include "ScreenManager.h"
#include "RageSounds.h"
#include "Steps.h"
const ScreenMessage SM_NotesEnded = ScreenMessage(SM_User+10); // MUST be same as in ScreenGameplay
@@ -61,6 +61,9 @@ bool ScreenJukebox::SetSong()
if( pNotes == NULL )
continue; // skip
if( !PREFSMAN->m_bAutogenMissingTypes && pNotes->IsAutogen())
continue; // skip
// Found something we can use!
GAMESTATE->m_pCurSong = pSong;
for( int p=0; p<NUM_PLAYERS; p++ )