Force FailImmediate in battery mode. Some code assumes it.

Are there any interesting uses of allowing non-FailImmediate in battery
mode?  It would be harmless to allow setting it in the song options screen
if it was useful and worked (the current problem is that the default fail
mode is being applied, too).
This commit is contained in:
Glenn Maynard
2004-08-25 08:56:58 +00:00
parent a6703d5561
commit 9875923278
+5
View File
@@ -885,6 +885,11 @@ void ScreenGameplay::LoadNextSong()
// Restore the player's originally selected options.
GAMESTATE->RestoreSelectedOptions();
/* If we're in battery mode, force FailImmediate. We assume in PlayerMinus::Step that
* failed players can't step. */
if( GAMESTATE->m_SongOptions.m_LifeType == SongOptions::LIFE_BATTERY )
GAMESTATE->m_SongOptions.m_FailType = SongOptions::FAIL_IMMEDIATE;
m_textSongOptions.SetText( GAMESTATE->m_SongOptions.GetString() );