Another goto replace with a fake infinite.
This commit is contained in:
+13
-6
@@ -126,6 +126,8 @@ void PaneDisplay::SetContent( PaneCategory c )
|
|||||||
const Profile *pProfile = PROFILEMAN->IsPersistentProfile(m_PlayerNumber) ? PROFILEMAN->GetProfile(m_PlayerNumber) : NULL;
|
const Profile *pProfile = PROFILEMAN->IsPersistentProfile(m_PlayerNumber) ? PROFILEMAN->GetProfile(m_PlayerNumber) : NULL;
|
||||||
bool bIsPlayerEdit = pSteps && pSteps->IsAPlayerEdit();
|
bool bIsPlayerEdit = pSteps && pSteps->IsAPlayerEdit();
|
||||||
|
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
if(GAMESTATE->IsCourseMode() && !pTrail)
|
if(GAMESTATE->IsCourseMode() && !pTrail)
|
||||||
{
|
{
|
||||||
if( (g_Contents[c].req&NEED_PROFILE) )
|
if( (g_Contents[c].req&NEED_PROFILE) )
|
||||||
@@ -145,9 +147,10 @@ void PaneDisplay::SetContent( PaneCategory c )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
goto done;
|
break;
|
||||||
}
|
}
|
||||||
else if(!GAMESTATE->IsCourseMode() && !pSong)
|
|
||||||
|
if(!GAMESTATE->IsCourseMode() && !pSong)
|
||||||
{
|
{
|
||||||
if( (g_Contents[c].req&NEED_PROFILE) )
|
if( (g_Contents[c].req&NEED_PROFILE) )
|
||||||
str = NOT_AVAILABLE;
|
str = NOT_AVAILABLE;
|
||||||
@@ -166,17 +169,20 @@ void PaneDisplay::SetContent( PaneCategory c )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
goto done;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( (g_Contents[c].req&NEED_NOTES) && !pSteps && !pTrail )
|
if( (g_Contents[c].req&NEED_NOTES) && !pSteps && !pTrail )
|
||||||
goto done;
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
if( (g_Contents[c].req&NEED_PROFILE) && !pProfile )
|
if( (g_Contents[c].req&NEED_PROFILE) && !pProfile )
|
||||||
{
|
{
|
||||||
str = NOT_AVAILABLE;
|
str = NOT_AVAILABLE;
|
||||||
goto done;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is this standalone block needed?
|
||||||
{
|
{
|
||||||
RadarValues rv;
|
RadarValues rv;
|
||||||
HighScoreList *pHSL = NULL;
|
HighScoreList *pHSL = NULL;
|
||||||
@@ -256,8 +262,9 @@ void PaneDisplay::SetContent( PaneCategory c )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
done:
|
|
||||||
m_textContents[c].SetText( str );
|
m_textContents[c].SetText( str );
|
||||||
|
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
|
|||||||
Reference in New Issue
Block a user