this part didnt commit in last rev, it fixes the mana display.

the progress is removed on this though, so you might not notice it until next release when you do a fresh install.
any new decks for both player or ai will show the mana symbols after a match is completed.
This commit is contained in:
omegablast2002@yahoo.com
2013-01-27 19:35:52 +00:00
parent dac14020a2
commit eaf4d94a2e
2 changed files with 4 additions and 3 deletions

View File

@@ -124,8 +124,8 @@ void DeckMenu::RenderDeckManaColors()
float manaIconY = 55; float manaIconY = 55;
if (mSelectedDeck &&displayDeckMana) if (mSelectedDeck &&displayDeckMana)
{ {
string deckManaColors = mSelectedDeck->getColorIndex(); string deckManaColors = mSelectedDeck->getColorIndex().c_str();
if ( deckManaColors.compare("") != 0 && ( deckManaColors.length() == 6 )) if (deckManaColors.size() == 6)
{ {
// due to space constraints don't display icons for colorless mana. // due to space constraints don't display icons for colorless mana.
for( int colorIdx = Constants::MTG_COLOR_GREEN; colorIdx < Constants::MTG_COLOR_LAND; ++colorIdx ) for( int colorIdx = Constants::MTG_COLOR_GREEN; colorIdx < Constants::MTG_COLOR_LAND; ++colorIdx )

View File

@@ -372,7 +372,8 @@ string StatsWrapper::getManaColorIndex()
oss << "1"; oss << "1";
else else
oss <<"0"; oss <<"0";
return oss.str(); string index = oss.str();
return index;
} }