J :
* 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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user