clean up CPU player naming

add default CPU player modifiers
This commit is contained in:
Chris Danford
2004-05-16 02:51:55 +00:00
parent 79e5c41476
commit ee4427a54b
8 changed files with 47 additions and 20 deletions
+1 -5
View File
@@ -224,11 +224,7 @@ const Profile* ProfileManager::GetProfile( PlayerNumber pn ) const
CString ProfileManager::GetPlayerName( PlayerNumber pn ) const
{
const Profile *prof = GetProfile( pn );
if( prof )
return prof->GetDisplayName();
const char *names[NUM_PLAYERS] = { "PLAYER 1", "PLAYER 2" };
return names[pn];
return prof ? prof->GetDisplayName() : "";
}