fix "#P1#" showing

This commit is contained in:
Glenn Maynard
2003-12-23 22:19:47 +00:00
parent 80f57fc7b2
commit c3adbb9f1e
+5
View File
@@ -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 );