set up course lives; do this in the same way we adjust options

in ScreenSelectMusic
This commit is contained in:
Glenn Maynard
2003-02-17 19:16:58 +00:00
parent 032bf447f3
commit bae902ca23
3 changed files with 15 additions and 1 deletions
+12
View File
@@ -250,6 +250,17 @@ void ScreenSelectCourse::Input( const DeviceInput& DeviceI, InputEventType type,
Screen::Input( DeviceI, type, GameI, MenuI, StyleI ); // default input handler
}
/* Adjust game options. These settings may be overridden again later by the
* SongOptions menu. */
void ScreenSelectCourse::AdjustOptions()
{
if(GAMESTATE->m_pCurCourse->m_iLives != -1)
{
/* oni */
GAMESTATE->m_SongOptions.m_LifeType = SongOptions::LifeType::LIFE_BATTERY;
GAMESTATE->m_SongOptions.m_iBatteryLives = GAMESTATE->m_pCurCourse->m_iLives;
}
}
void ScreenSelectCourse::HandleScreenMessage( const ScreenMessage SM )
{
@@ -331,6 +342,7 @@ void ScreenSelectCourse::MenuStart( PlayerNumber pn )
GAMESTATE->m_SongOptions.FromString( sModifiers );
m_Menu.StopTimer();
AdjustOptions();
this->SendScreenMessage( SM_GoToNextScreen, 2.5f );
+1 -1
View File
@@ -38,8 +38,8 @@ public:
void MenuBack( PlayerNumber pn );
protected:
void AdjustOptions();
void AfterCourseChange();
void UpdateOptionsDisplays();
MenuElements m_Menu;
+2
View File
@@ -528,6 +528,8 @@ void ScreenSelectMusic::HarderDifficulty( PlayerNumber pn )
AfterNotesChange( pn );
}
/* Adjust game options. These settings may be overridden again later by the
* SongOptions menu. */
void ScreenSelectMusic::AdjustOptions()
{
/* Find the easiest difficulty notes selected by either player. */