Fix Enstack Attackers
If you have 40+ tokens as attackers in play, stack them on the attackers tightly...
This commit is contained in:
@@ -125,12 +125,12 @@ 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 + baseX;
|
card->x = x + baseX;
|
||||||
if (total < 8)
|
if (attackers+1 < 8)
|
||||||
x += CARD_WIDTH;
|
x += CARD_WIDTH;
|
||||||
else if (total < 16)
|
else if (attackers+1 < 16)
|
||||||
x += (SCREEN_WIDTH - 200 - baseX) / total;
|
x += (SCREEN_WIDTH - 200 - baseX) / attackers+1;
|
||||||
else
|
else
|
||||||
x += (SCREEN_WIDTH - 50 - baseX) / total;
|
x += (HORZWIDTH - 50 - baseX) / attackers+1;
|
||||||
|
|
||||||
card->y = baseY + (card->card->getObserver()->getView()->getRenderedPlayer() == card->card->controller() ? 20 + y : -20 - y);
|
card->y = baseY + (card->card->getObserver()->getView()->getRenderedPlayer() == card->card->controller() ? 20 + y : -20 - y);
|
||||||
++currentAttacker;
|
++currentAttacker;
|
||||||
|
|||||||
Reference in New Issue
Block a user