Added some metrics to unlock screen (animations for unlock icons, mainly, as well as "seconds to display")

Fixed bug with roulette seeds (selecting a song that does not exist in unlock database caused a crash upon selecting a song)
This commit is contained in:
Andrew Wong
2003-07-10 07:22:31 +00:00
parent da81d1aebd
commit 987f152891
4 changed files with 17 additions and 4 deletions
+3 -1
View File
@@ -6,7 +6,7 @@
Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
Kevin Slaughter
curewater
Andrew Wong
-----------------------------------------------------------------------------
*/
@@ -31,9 +31,11 @@ UnlockSystem::UnlockSystem()
bool UnlockSystem::RouletteUnlock( const Song *song )
{
SongEntry *p = FindSong( song );
if (!p) return false; // does not exist
if (p->m_iRouletteSeed == 0) return false; // already unlocked
PREFSMAN->m_RouletteSeeds[p->m_iRouletteSeed] = '1';
PREFSMAN->SaveGamePrefsToDisk();
return true;
}