remove confusing overlap between "requirements met" and "unlocked"

This commit is contained in:
Chris Danford
2006-05-03 21:34:05 +00:00
parent acb136102f
commit 5b756e7e31
5 changed files with 34 additions and 31 deletions
+8 -4
View File
@@ -1,15 +1,23 @@
#include "global.h"
#include "ScreenUnlockCelebrate.h"
#include "UnlockManager.h"
#include "LuaFunctions.h"
REGISTER_SCREEN_CLASS( ScreenUnlockCelebrate );
static int g_iUnlockEntryIndexToCelebrate = 0;
LuaFunction( GetUnlockEntryIndexToCelebrate, g_iUnlockEntryIndexToCelebrate );
void ScreenUnlockCelebrate::Init()
{
// We shouldn't be called if there aren't any unlocks to celebrate
ASSERT( UNLOCKMAN->AnyUnlocksToCelebrate() );
g_iUnlockEntryIndexToCelebrate = UNLOCKMAN->GetUnlockEntryIndexToCelebrate();
UNLOCKMAN->UnlockEntryIndex( g_iUnlockEntryIndexToCelebrate );
ScreenUnlockBrowse::Init();
}
@@ -31,10 +39,6 @@ void ScreenUnlockCelebrate::MenuDown( const InputEventPlus &input )
void ScreenUnlockCelebrate::MenuStart( PlayerNumber pn )
{
// Mark this unlock as celebrated
int iUnlockIndex = UNLOCKMAN->GetUnlockEntryIndexToCelebrate();
UNLOCKMAN->UnlockEntryIndex( iUnlockIndex );
ScreenUnlockBrowse::MenuStart( pn );
}