Merge pull request #840 from kevlahnota/master

Minor adjustment
This commit is contained in:
Anthony Calosa
2016-08-07 14:08:51 +08:00
committed by GitHub
+4 -4
View File
@@ -91,9 +91,9 @@ void GuiPlay::VertStack::Enstack(CardView* card)
card->x = x + baseX; card->x = x + baseX;
card->y = y + baseY; card->y = y + baseY;
y += 8; y += 10;
if (++count == total - 1 && y == 8) if (++count == total - 1 && y == 10)
y += 8; y += 10;
//last value += 12... //last value += 12...
} }
@@ -133,7 +133,7 @@ void GuiPlay::BattleField::reset(float x, float y)
void GuiPlay::BattleField::EnstackAttacker(CardView* card) void GuiPlay::BattleField::EnstackAttacker(CardView* card)
{ {
//card->x = CARD_WIDTH + 20 + (currentAttacker * (HORZWIDTH) / (attackers+1)); //card->x = CARD_WIDTH + 20 + (currentAttacker * (HORZWIDTH) / (attackers+1));
card->x = x-12 + baseX; card->x = x-6 + baseX;
if (attackers+1 < 8) if (attackers+1 < 8)
x += CARD_WIDTH; x += CARD_WIDTH;
else if (attackers+1 < 24) else if (attackers+1 < 24)