Erwan
- Loading the "awardback.jpg" file in 16bits instead of 32. This should extremely reduce the probability of crashes (issue 247) - Added some error debug message for the test suite when a card cannot be found
This commit is contained in:
@@ -111,7 +111,7 @@ void GameStateAwards::Start()
|
||||
detailview = NULL;
|
||||
setSrc = NULL;
|
||||
showMenu = false;
|
||||
mBgTex = resources.RetrieveTexture("awardback.jpg");
|
||||
mBgTex = resources.RetrieveTexture("awardback.jpg",TEXTURE_SUB_5551);
|
||||
mBg = resources.RetrieveQuad("awardback.jpg");
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@ int Rules::getMTGId(string cardName){
|
||||
if (cardName.compare("*") == 0) return -1; //Any card
|
||||
MTGCard * card = GameApp::collection->getCardByName(cardName);
|
||||
if (card) return card->getMTGId();
|
||||
OutputDebugString("RULES: Can't find card:");
|
||||
OutputDebugString(cardName.c_str());
|
||||
OutputDebugString("\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user