Jeck - Minor improvement to delayed loading in card spoiler.
This commit is contained in:
@@ -155,7 +155,7 @@ private:
|
|||||||
|
|
||||||
class WSrcMTGSet: public WDataSource{
|
class WSrcMTGSet: public WDataSource{
|
||||||
public:
|
public:
|
||||||
WSrcMTGSet(int setid, float mDelay=0.1);
|
WSrcMTGSet(int setid, float mDelay=0.2);
|
||||||
|
|
||||||
virtual JQuad * getImage();
|
virtual JQuad * getImage();
|
||||||
virtual MTGCard * getCard();
|
virtual MTGCard * getCard();
|
||||||
|
|||||||
@@ -1397,8 +1397,12 @@ WSrcMTGSet::WSrcMTGSet(int setid, float delay){
|
|||||||
currentCard = 0;
|
currentCard = 0;
|
||||||
}
|
}
|
||||||
JQuad * WSrcMTGSet::getImage(){
|
JQuad * WSrcMTGSet::getImage(){
|
||||||
if(mDelay && mLastInput < mDelay)
|
#if defined WIN32 || defined LINUX //Loading delay only on PSP.
|
||||||
return NULL;
|
#else
|
||||||
|
if(mDelay && mLastInput < mDelay){
|
||||||
|
return resources.RetrieveCard(getCard(),RETRIEVE_EXISTING);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return resources.RetrieveCard(getCard());
|
return resources.RetrieveCard(getCard());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user