From a17d92d9210fa3466f927567bd0271f7bb243a8a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 6 Jun 2004 22:18:05 +0000 Subject: [PATCH] do allow a ModeChoice even if more there are sides are joined than credits required for the mode --- stepmania/src/ModeChoice.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ModeChoice.cpp b/stepmania/src/ModeChoice.cpp index 84f379f3d5..b45b3a9b1c 100644 --- a/stepmania/src/ModeChoice.cpp +++ b/stepmania/src/ModeChoice.cpp @@ -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, * the credits will be "refunded" in Apply(), but that's confusing.) */ - if( PREFSMAN->m_iCoinMode == COIN_PAY && iNumCreditsPaid > iNumCreditsRequired ) - { - if( why ) - *why = ssprintf( "too many credits paid (%i > %i)", iNumCreditsPaid, iNumCreditsRequired ); - return false; - } + /* Do allow the mode if they've already joined in more credits than + * are required. Otherwise, people who put in two credits to play + * doubles on a doubles-premium machiune will get locked out. + * the refund logic isn't that awkward because you never see the + * 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 * accidentally, instead of versus mode. */