Another goto replace with a fake infinite.

This commit is contained in:
Jason Felds
2013-01-24 23:25:28 -05:00
parent 7bbeb689db
commit 1044dcd86d
+13 -6
View File
@@ -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();