clean up premium coin logic

This commit is contained in:
Chris Danford
2003-11-09 01:09:35 +00:00
parent c279fd03a4
commit 02679ea68b
13 changed files with 39 additions and 86 deletions
+3 -11
View File
@@ -93,18 +93,10 @@ void ScreenSelect::Input( const DeviceInput& DeviceI, const InputEventType type,
{
// LOG->Trace( "ScreenSelect::Input()" );
if( GAMESTATE->UsingPremiumAndPaying() )
if( Screen::JoinInput(DeviceI, type, GameI, MenuI, StyleI) )
{
if( MenuI.IsValid() && MenuI.button==MENU_BUTTON_COIN && GAMESTATE->m_iCoins==PREFSMAN->m_iCoinsPerCredit*2 )
this->UpdateSelectableChoices();
}
else
{
if( Screen::JoinInput(DeviceI, type, GameI, MenuI, StyleI) )
{
this->UpdateSelectableChoices();
return; // don't let the screen handle the MENU_START press
}
this->UpdateSelectableChoices();
return; // don't let the screen handle the MENU_START press
}
if( m_Menu.IsTransitioning() )