- 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:
wagic.the.homebrew@gmail.com
2009-12-17 13:09:47 +00:00
parent 6ed9fd2be4
commit 35745a55ef
2 changed files with 4 additions and 1 deletions

View File

@@ -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");
}

View File

@@ -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;
}