Jeck - Cache misses report CACHE_ERROR_404. This allows alternate card renders to display steadily (that is, without reverting to cardback) in deck viewer.
This commit is contained in:
@@ -1223,8 +1223,10 @@ cacheItem * WCache<cacheItem, cacheActual>::Get(string id, int style, int submod
|
|||||||
}
|
}
|
||||||
//Well, we've found something...
|
//Well, we've found something...
|
||||||
if(it != cache.end()) {
|
if(it != cache.end()) {
|
||||||
if(!it->second && (submode & CACHE_EXISTING))
|
if(!it->second && (submode & CACHE_EXISTING)){
|
||||||
|
mError = CACHE_ERROR_404;
|
||||||
return NULL; //A miss.
|
return NULL; //A miss.
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return it->second; //A hit.
|
return it->second; //A hit.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user