From 7c991e150adfd4bc72174b084ce2da1b643ca710 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 29 Apr 2005 21:06:13 +0000 Subject: [PATCH] show "????" for blank names --- stepmania/src/PaneDisplay.cpp | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/stepmania/src/PaneDisplay.cpp b/stepmania/src/PaneDisplay.cpp index c23fe20217..07b0b57c1c 100644 --- a/stepmania/src/PaneDisplay.cpp +++ b/stepmania/src/PaneDisplay.cpp @@ -298,11 +298,28 @@ void PaneDisplay::SetContent( PaneContents c ) switch( c ) { case SONG_MACHINE_HIGH_NAME: - str = PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).GetTopScore().sName; + if( PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).vHighScores.empty() ) + { + str = ""; + } + else + { + str = PROFILEMAN->GetMachineProfile()->GetStepsHighScoreList(pSong,pSteps).GetTopScore().sName; + if( str.empty() ) + str = "????"; + } break; case COURSE_MACHINE_HIGH_NAME: - - str = PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).GetTopScore().sName; + if( PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).vHighScores.empty() ) + { + str = ""; + } + else + { + str = PROFILEMAN->GetMachineProfile()->GetCourseHighScoreList(pCourse,pTrail).GetTopScore().sName; + if( str.empty() ) + str = "????"; + } break; case SONG_MACHINE_HIGH_SCORE: