fix player name overlaps other text in PaneDisplay

This commit is contained in:
Chris Danford
2004-01-20 03:32:25 +00:00
parent 81a1cf8378
commit 8f7f94a718
+3 -2
View File
@@ -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 );