Changed solar system name display code to omit the English name of an object when a translated version is present. This is the same behavior as 1.5.0.

ver1_6_1
Chris Laurel 2008-09-13 18:46:36 +00:00
parent a63b8f7df3
commit 3f87867724
1 changed files with 9 additions and 2 deletions

View File

@ -3691,9 +3691,16 @@ void CelestiaCore::renderOverlay()
// Show all names for the body
overlay->setFont(titleFont);
const vector<string>& names = sel.body()->getNames();
for (vector<string>::const_iterator iter = names.begin(); iter != names.end(); iter++)
// Skip displaying the primary name if there's a localized version
// of the name.
vector<string>::const_iterator firstName = names.begin();
if (sel.body()->hasLocalizedName())
firstName++;
for (vector<string>::const_iterator iter = firstName; iter != names.end(); iter++)
{
if (iter != names.begin())
if (iter != firstName)
*overlay << " / ";
*overlay << *iter;
}