Jeck - Minor improvement to delayed loading in card spoiler.

This commit is contained in:
wagic.jeck
2009-12-13 16:34:35 +00:00
parent 160b06f616
commit d873b573f8
2 changed files with 7 additions and 3 deletions

View File

@@ -155,7 +155,7 @@ private:
class WSrcMTGSet: public WDataSource{
public:
WSrcMTGSet(int setid, float mDelay=0.1);
WSrcMTGSet(int setid, float mDelay=0.2);
virtual JQuad * getImage();
virtual MTGCard * getCard();

View File

@@ -1397,8 +1397,12 @@ WSrcMTGSet::WSrcMTGSet(int setid, float delay){
currentCard = 0;
}
JQuad * WSrcMTGSet::getImage(){
if(mDelay && mLastInput < mDelay)
return NULL;
#if defined WIN32 || defined LINUX //Loading delay only on PSP.
#else
if(mDelay && mLastInput < mDelay){
return resources.RetrieveCard(getCard(),RETRIEVE_EXISTING);
}
#endif
return resources.RetrieveCard(getCard());
}