* Some cleaning after r1062 code review.
- Remove code that was never reached.
- Remove a useless function.
- Make GuiPlay treat cards that are both spells and creatures as
  creatures and not spells.
This commit is contained in:
jean.chalard
2009-10-19 13:36:42 +00:00
parent 273b0672e4
commit 77a00a3c4d
3 changed files with 3 additions and 10 deletions

View File

@@ -33,11 +33,6 @@ void GuiPlay::CardStack::RenderSpell(MTGCardInstance* card, iterator begin, iter
GuiPlay::HorzStack::HorzStack() {}
GuiPlay::VertStack::VertStack() {}
void GuiPlay::HorzStack::reset(unsigned total, float x, float y)
{
GuiPlay::CardStack::reset(total, x, y);
}
void GuiPlay::VertStack::reset(unsigned total, float x, float y)
{
GuiPlay::CardStack::reset(total, x - CARD_WIDTH, y);
@@ -124,7 +119,7 @@ GuiPlay::~GuiPlay()
}
}
bool isSpell(CardView* c) { return c->card->isSpell(); }
bool isSpell(CardView* c) { return c->card->isSpell() && !c->card->isCreature(); }
void GuiPlay::Replace()
{
unsigned opponentSpellsN = 0, selfSpellsN = 0, opponentLandsN = 0, opponentCreaturesN = 0,