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;
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_mode=MODE__NONE;
if(s_runOnce)
{
setMode(MODE__FMV_INTRO);
}
else
{
s_runOnce=true;
setMode(MODE__NICK_LOGO);
}
setMode(s_startMode);
m_sprites=new ("MainTitle Sprites") SpriteBank();
m_sprites->load(SPRITES_SPRITES_SPR);
@ -191,6 +184,9 @@ void CFrontEndScene::shutdown()
{
s_modeCodes[i]->shutdown();
}
// Nex time.. go into this mode first
setStartMode(MODE__FMV_INTRO);
}

View File

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

View File

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