Switching PT, Token Indicator

Added Switching PT like Layer 7e, Token Indicator for cloned Cards
This commit is contained in:
Anthony Calosa
2015-09-19 23:25:33 +08:00
parent 8e15ad7ed0
commit c372ffa111
9 changed files with 150 additions and 43 deletions

View File

@@ -1857,7 +1857,9 @@ int Tournament::getRandomDeck(bool noEasyDecks)
while(isDouble && decks.size()>0)
{
isDouble=false;
k = rand() % (int)decks.size();
int lowest=0, highest = (int)decks.size();
int range=(highest-lowest);
k = lowest+int(range*rand()/(RAND_MAX + 1.0));
random = decks.at(k);
deckNumber = deckList->at(random)->getDeckId();