seperated a varible that determined the amount of sliding of cards based on how many noncreatures and nonland cards you had.
what this change does is this. if i have 20 enchantments on the battlefield Ai's creatures and lands no longer slide to the right. and vice versa. made no sense that if the other player had no artifacts/enchantments that HIS lands and creatures would slide simply because the OTHER player had artifacts/enchantments.
This commit is contained in:
@@ -166,12 +166,16 @@ void GuiPlay::Replace()
|
||||
else opponentSpells.Enstack(*it);
|
||||
}
|
||||
|
||||
float x = 24 + MAX(opponentSpells.nextX(), selfSpells.nextX());
|
||||
float x = 24 + opponentSpells.nextX();
|
||||
//seperated the varible X into 2 different varibles. There are 2 players here!!
|
||||
//we should not be using a single varible to determine the positioning of cards!!
|
||||
float myx = 24 + selfSpells.nextX();
|
||||
opponentLands.reset(opponentLandsN, x, 50);
|
||||
opponentCreatures.reset(opponentCreaturesN, x, 95);
|
||||
battleField.reset(x, 145);
|
||||
selfCreatures.reset(selfCreaturesN, x, 195);
|
||||
selfLands.reset(selfLandsN, x, 240);
|
||||
battleField.reset(x, 145);//what does this varible do? i can comment it out with no reprocussions...is this being double handled?
|
||||
selfCreatures.reset(selfCreaturesN, myx, 195);
|
||||
selfLands.reset(selfLandsN, myx, 240);
|
||||
|
||||
|
||||
for (iterator it = end_spells; it != cards.end(); ++it)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user