cleanup
This commit is contained in:
@@ -11,8 +11,17 @@ void ScreenUnlockBrowse::Init()
|
|||||||
FOREACH_CONST( UnlockEntry, UNLOCKMAN->m_UnlockEntries, ue )
|
FOREACH_CONST( UnlockEntry, UNLOCKMAN->m_UnlockEntries, ue )
|
||||||
{
|
{
|
||||||
GameCommand gc;
|
GameCommand gc;
|
||||||
if( ue->GetUnlockEntryStatus() >= UnlockEntryStatus_RequirementsMet )
|
switch( ue->GetUnlockEntryStatus() )
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
ASSERT(0);
|
||||||
|
case UnlockEntryStatus_RequirementsMet:
|
||||||
|
case UnlockEntryStatus_Unlocked:
|
||||||
gc.m_bInvalid = false;
|
gc.m_bInvalid = false;
|
||||||
|
break;
|
||||||
|
case UnlockEntryStatus_RequrementsNotMet:
|
||||||
|
break;
|
||||||
|
}
|
||||||
gc.m_iIndex = ue - UNLOCKMAN->m_UnlockEntries.begin();
|
gc.m_iIndex = ue - UNLOCKMAN->m_UnlockEntries.begin();
|
||||||
gc.m_sUnlockEntryID = ue->m_sEntryID;
|
gc.m_sUnlockEntryID = ue->m_sEntryID;
|
||||||
gc.m_sName = ssprintf("%d",gc.m_iIndex);
|
gc.m_sName = ssprintf("%d",gc.m_iIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user