Premade decks will not create/update stats on battles.

Update description for default premade deck to allow proper wrapping of text.  
Issue: 540
This commit is contained in:
techdragon.nguyen@gmail.com
2010-12-02 08:36:36 +00:00
parent 720ee30c9a
commit bcca766cb6
2 changed files with 4 additions and 7 deletions

View File

@@ -1,8 +1,5 @@
#NAME:Premade G/R
#DESC:A Red/Green deck with simple mechanics
#DESC:to get you started.
#DESC:We recommend to create your own decks
#DESC:to get the full Wagic Fun!
#DESC:A Red/Green deck with simple mechanics to get you started. We recommend to create your own decks to get the full Wagic Fun!
Forest (10E) *11
Mountain (10E) *12

View File

@@ -233,13 +233,13 @@ void GameStateDuel::End()
JRenderer::GetInstance()->EnableVSync(false);
DeckManager::EndInstance();
if (mPlayers[0] && mPlayers[1]) // save the stats for the game
if (!premadeDeck && mPlayers[0] && mPlayers[1]) // save the stats for the game
mPlayers[0]->End();
else
else if ( !mPlayers[1] && mPlayers[0] )
// clean up player object
SAFE_DELETE( mPlayers[0] );
GameObserver::EndInstance();
GameObserver::EndInstance(); // this will delete both player objects
game = NULL;
premadeDeck = false;