- Zip file Directory cache for faster access
- Preload card images in player's hand before the game starts
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-26 11:32:17 +00:00
parent 04dd43d180
commit 0e88d03c04
3 changed files with 71 additions and 3 deletions

View File

@@ -155,6 +155,14 @@ void GameObserver::startGame(int shuffle, int draw){
for (i=0; i<nbPlayers; i++){
players[i]->game->initGame(shuffle, draw);
}
//Preload images from hand
if (!players[0]->isAI()){
for (i=0; i< players[0]->game->hand->nb_cards; i++){
players[0]->game->hand->cards[i]->getThumb();
players[0]->game->hand->cards[i]->getQuad();
}
}
turn = 0;
phaseRing->goToPhase(Constants::MTG_PHASE_FIRSTMAIN, players[0]);
currentGamePhase = Constants::MTG_PHASE_FIRSTMAIN;