- Put back delayed loading functionality for the Deck editor
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-09 13:51:29 +00:00
parent 91a9387e33
commit c0be024093
3 changed files with 9 additions and 1 deletions

View File

@@ -299,6 +299,9 @@ WCachedTexture * WResourceManager:: getCachedCard(MTGCard * card, int type, bool
if(miss != textureCache.end() && miss->second == NULL)
return NULL; //We've found a cache miss, so return null.
if(miss == textureCache.end() && !makenew)
return NULL; //cache empty and don't want to create
WCachedTexture * ctex = textureCache[filename];
//Failed to find it in cache!
if(!ctex && makenew){