This commit is contained in:
Paul 2001-07-29 18:39:42 +00:00
parent b6b1d14c3c
commit 27564c8431
3 changed files with 11 additions and 10 deletions

View File

@ -139,7 +139,7 @@ CFrontEndScene FrontEndScene;
SpriteBank *m_sprites; SpriteBank *m_sprites;
FontBank *m_font; FontBank *m_font;
static int s_runOnce=false; CFrontEndScene::FrontEndMode CFrontEndScene::s_startMode=MODE__NICK_LOGO;
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------
@ -157,15 +157,8 @@ void CFrontEndScene::init()
m_exitToGame=false; m_exitToGame=false;
m_mode=MODE__NONE; m_mode=MODE__NONE;
if(s_runOnce)
{ setMode(s_startMode);
setMode(MODE__FMV_INTRO);
}
else
{
s_runOnce=true;
setMode(MODE__NICK_LOGO);
}
m_sprites=new ("MainTitle Sprites") SpriteBank(); m_sprites=new ("MainTitle Sprites") SpriteBank();
m_sprites->load(SPRITES_SPRITES_SPR); m_sprites->load(SPRITES_SPRITES_SPR);
@ -191,6 +184,9 @@ void CFrontEndScene::shutdown()
{ {
s_modeCodes[i]->shutdown(); s_modeCodes[i]->shutdown();
} }
// Nex time.. go into this mode first
setStartMode(MODE__FMV_INTRO);
} }

View File

@ -75,6 +75,8 @@ public:
int readyToShutdown(); int readyToShutdown();
char *getSceneName() {return"FrontEnd";} char *getSceneName() {return"FrontEnd";}
static void setStartMode(FrontEndMode _mode) {s_startMode=_mode;}
static void renderLogo(); static void renderLogo();
private: private:
@ -88,6 +90,8 @@ private:
class CFrontEndMode *m_modeCode; class CFrontEndMode *m_modeCode;
static class CFrontEndMode *s_modeCodes[]; static class CFrontEndMode *s_modeCodes[];
static FrontEndMode s_startMode;
}; };

View File

@ -739,6 +739,7 @@ void CGameScene::setReadyToExit()
{ {
s_readyToExit=true; s_readyToExit=true;
GameState::setNextScene(&FrontEndScene); GameState::setNextScene(&FrontEndScene);
CFrontEndScene::setStartMode(CFrontEndScene::MODE__CHOOSE_SLOT);
CFader::setFadingOut(); CFader::setFadingOut();
} }