From c3adbb9f1e08a1922d6c87a1ff5ed5f68e744c81 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 23 Dec 2003 22:19:47 +0000 Subject: [PATCH] fix "#P1#" showing --- stepmania/src/PaneDisplay.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/PaneDisplay.cpp b/stepmania/src/PaneDisplay.cpp index dd690a4aaa..710a8f1951 100644 --- a/stepmania/src/PaneDisplay.cpp +++ b/stepmania/src/PaneDisplay.cpp @@ -298,6 +298,11 @@ void PaneDisplay::SetContent( PaneContents c ) str = ssprintf( "%.0f", val ); } + /* If this is a high score name that was set during this game, use the player's name. */ + for( int p=0; p < NUM_PLAYERS; ++p ) + if( str == RANKING_TO_FILL_IN_MARKER[p] ) + str = PROFILEMAN->GetPlayerName( (PlayerNumber)p ); + m_textContents[c].SetText( str ); const unsigned num = NUM_ITEM_COLORS( g_Contents[c].name );