add separate explanation name so that rows with no title can still have an explanation

This commit is contained in:
Chris Danford
2005-12-03 20:39:11 +00:00
parent 9e8469eb65
commit d33daeb6f9
4 changed files with 13 additions and 11 deletions
+5 -3
View File
@@ -389,10 +389,12 @@ CString ScreenOptions::GetExplanationText( int iRow ) const
if( !bShowExplanations )
return CString();
CString sLineName = row.GetRowDef().m_sName;
ASSERT( !sLineName.empty() );
CString sExplanationName = row.GetRowDef().m_sExplanationName;
if( sExplanationName.empty() )
sExplanationName = row.GetRowDef().m_sName;
ASSERT( !sExplanationName.empty() );
return OPTION_EXPLANATION(sLineName);
return OPTION_EXPLANATION(sExplanationName);
}
BitmapText &ScreenOptions::GetTextItemForRow( PlayerNumber pn, int iRow, int iChoiceOnRow )