Hack for allowing ScummVM to respond to events during while the intro is

playing. I apologize for adding a global variable, but for now that seemed
like the least intrusive change.

svn-id: r10845
This commit is contained in:
Torbjörn Andersson 2003-10-17 08:40:48 +00:00
parent e00c16b4a9
commit 40b231e6fe
3 changed files with 10 additions and 2 deletions

View File

@ -696,7 +696,7 @@ void Graphics::update() {
_display->prepareUpdate();
bobDrawAll();
textDrawAll();
g_system->delay_msecs(100);
g_queen->delay(100);
_display->palCustomScroll(0); //_currentRoom
_display->update(_bobs[0].active, _bobs[0].x, _bobs[0].y);
}

View File

@ -59,8 +59,12 @@ REGISTER_PLUGIN("Flight of the Amazon Queen", Engine_QUEEN_targetList, Engine_QU
namespace Queen {
QueenEngine *g_queen;
QueenEngine::QueenEngine(GameDetector *detector, OSystem *syst)
: Engine(detector, syst) {
g_queen = this;
_game = detector->_game.id;

View File

@ -62,10 +62,11 @@ public:
QueenEngine(GameDetector *detector, OSystem *syst);
virtual ~QueenEngine();
void delay(uint amount);
protected:
byte _fastMode;
void delay(uint amount);
void go();
//! Called when we go from one room to another
@ -76,6 +77,9 @@ protected:
static int CDECL game_thread_proc(void *param);
};
// XXX: Temporary hack to allow Graphics to call delay()
extern QueenEngine *g_queen;
} // End of namespace Queen
#endif