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;
|
||||
bool bIsPlayerEdit = pSteps && pSteps->IsAPlayerEdit();
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if(GAMESTATE->IsCourseMode() && !pTrail)
|
||||
{
|
||||
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) )
|
||||
str = NOT_AVAILABLE;
|
||||
@@ -166,17 +169,20 @@ void PaneDisplay::SetContent( PaneCategory c )
|
||||
}
|
||||
}
|
||||
|
||||
goto done;
|
||||
break;
|
||||
}
|
||||
|
||||
if( (g_Contents[c].req&NEED_NOTES) && !pSteps && !pTrail )
|
||||
goto done;
|
||||
{
|
||||
break;
|
||||
}
|
||||
if( (g_Contents[c].req&NEED_PROFILE) && !pProfile )
|
||||
{
|
||||
str = NOT_AVAILABLE;
|
||||
goto done;
|
||||
break;
|
||||
}
|
||||
|
||||
// Is this standalone block needed?
|
||||
{
|
||||
RadarValues rv;
|
||||
HighScoreList *pHSL = NULL;
|
||||
@@ -256,8 +262,9 @@ void PaneDisplay::SetContent( PaneCategory c )
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
done:
|
||||
m_textContents[c].SetText( str );
|
||||
|
||||
Lua *L = LUA->Get();
|
||||
|
||||
Reference in New Issue
Block a user