From 7b3d65e984201f62a6c377bf733109af9590d5a8 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 5 Feb 2011 13:26:02 +0000 Subject: [PATCH] changed it a little...now now difference while you have less then 10 artifacts/enchantments...after 9 it reorders them into stacks of 5 to save room.... --- projects/mtg/src/GuiPlay.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/projects/mtg/src/GuiPlay.cpp b/projects/mtg/src/GuiPlay.cpp index ee56b650d..507e21fc0 100644 --- a/projects/mtg/src/GuiPlay.cpp +++ b/projects/mtg/src/GuiPlay.cpp @@ -68,10 +68,21 @@ void GuiPlay::HorzStack::Enstack(CardView* card) void GuiPlay::VertStack::Enstack(CardView* card) { - if (0 == count % 5) + if(total < 10) { - x += CARD_WIDTH; - y = 0; + if (0 == count % 3) + { + x += CARD_WIDTH; + y = 0; + } + } + else + { + if (0 == count % 5) + { + x += CARD_WIDTH; + y = 0; + } } card->x = x + baseX; card->y = y + baseY;