From 8f7f94a7186c4f971a81758338ecfcaf6779d3fb Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 20 Jan 2004 03:32:25 +0000 Subject: [PATCH] fix player name overlaps other text in PaneDisplay --- stepmania/src/PaneDisplay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/PaneDisplay.cpp b/stepmania/src/PaneDisplay.cpp index b8da843f59..6bb8c7c682 100644 --- a/stepmania/src/PaneDisplay.cpp +++ b/stepmania/src/PaneDisplay.cpp @@ -300,10 +300,11 @@ void PaneDisplay::SetContent( PaneContents c ) int p; - /* If this is a high score name that was set during this game, use the player's name. */ + /* If this is a high score name that was set during this game, use "YOU". + * The players name might be too long and overlap the label. */ for( p=0; p < NUM_PLAYERS; ++p ) if( str == RANKING_TO_FILL_IN_MARKER[p] ) - str = PROFILEMAN->GetPlayerName( (PlayerNumber)p ); + str = "YOU"; // TODO: move this to a metric //PROFILEMAN->GetPlayerName( (PlayerNumber)p ); m_textContents[c].SetText( str );