various bugfixes/updates

unlock system now supports clear and failed extra stages
songs unlocked by roulette are no longer unlocked by selecting them as extra stage
'fixed' survived time for extra stage when failing
This commit is contained in:
Andrew Wong
2003-08-07 10:15:16 +00:00
parent 4df19805c5
commit 5cc3dbe4bb
4 changed files with 21 additions and 2 deletions
+6 -1
View File
@@ -44,6 +44,7 @@
#include "Inventory.h"
#include "Course.h"
#include "NoteDataUtil.h"
#include "UnlockSystem.h"
//
// Defines
@@ -1810,7 +1811,11 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
fMaxSurviveSeconds = max( fMaxSurviveSeconds, GAMESTATE->m_CurStageStats.fAliveSeconds[p] );
ASSERT( fMaxSurviveSeconds > 0 );
m_textSurviveTime.SetText( "TIME: " + SecondsToTime(fMaxSurviveSeconds) );
SET_XY( m_textSurviveTime );
SET_XY_AND_ON_COMMAND( m_textSurviveTime );
// if unlocks are on, update fail extra stage count
if (PREFSMAN->m_bUseUnlockSystem)
GAMESTATE->m_pUnlockingSys->UnlockFailExtraStage();
}
SOUND->PlayOnceFromDir( ANNOUNCER->GetPathTo("gameplay failed") );