do allow a ModeChoice even if more there are sides are joined than credits required for the mode

This commit is contained in:
Chris Danford
2004-06-06 22:18:05 +00:00
parent d2a193e225
commit a17d92d921
+12 -6
View File
@@ -313,12 +313,18 @@ bool ModeChoice::IsPlayable( CString *why ) const
/* If you've paid too much already, don't allow the mode. (If we allow this, /* If you've paid too much already, don't allow the mode. (If we allow this,
* the credits will be "refunded" in Apply(), but that's confusing.) */ * the credits will be "refunded" in Apply(), but that's confusing.) */
if( PREFSMAN->m_iCoinMode == COIN_PAY && iNumCreditsPaid > iNumCreditsRequired ) /* Do allow the mode if they've already joined in more credits than
{ * are required. Otherwise, people who put in two credits to play
if( why ) * doubles on a doubles-premium machiune will get locked out.
*why = ssprintf( "too many credits paid (%i > %i)", iNumCreditsPaid, iNumCreditsRequired ); * the refund logic isn't that awkward because you never see the
return false; * credits number jump up - the credits display is hidden if both
} * sides are joined. -Chris */
//if( PREFSMAN->m_iCoinMode == COIN_PAY && iNumCreditsPaid > iNumCreditsRequired )
//{
// if( why )
// *why = ssprintf( "too many credits paid (%i > %i)", iNumCreditsPaid, iNumCreditsRequired );
// return false;
//}
/* If both sides are joined, disallow singles modes, since easy to select them /* If both sides are joined, disallow singles modes, since easy to select them
* accidentally, instead of versus mode. */ * accidentally, instead of versus mode. */