This commit is contained in:
Paul 2001-07-24 19:19:38 +00:00
parent 6c6f7f744b
commit 2b8ba9ab84
2 changed files with 5 additions and 6 deletions

View File

@ -408,14 +408,12 @@ void CGameOverScene::initGameOver()
void CGameOverScene::thinkGameOver(int _frames) void CGameOverScene::thinkGameOver(int _frames)
{ {
if(!CFader::isFading()) if(!CFader::isFading())
{
if(!m_finishedGrowingText)
{ {
m_gameOverTimer+=_frames; m_gameOverTimer+=_frames;
}
else if(m_finishedGrowingText&&!m_readyToExit)
{ {
if(!m_readyToExit&&PadGetDown(0)&(PAD_START|PAD_CROSS)) if(PadGetDown(0)&(PAD_START|PAD_CROSS)||m_gameOverTimer>GAMEOVER_DISPLAY_TIME)
{ {
m_readyToExit=true; m_readyToExit=true;
CFader::setFadingOut(); CFader::setFadingOut();

View File

@ -79,6 +79,7 @@ private:
GAMEOVER_FONT_GROWSPEED=150, GAMEOVER_FONT_GROWSPEED=150,
GAMEOVER_FONT_GROWSPACING=900, GAMEOVER_FONT_GROWSPACING=900,
GAMEOVER_FONT_MAXSIN=1500, GAMEOVER_FONT_MAXSIN=1500,
GAMEOVER_DISPLAY_TIME=60*10,
}; };
void initGameOver(); void initGameOver();
void thinkGameOver(int _frames); void thinkGameOver(int _frames);