From 2b8ba9ab84162e08a78e3354869ba03b944ffb6e Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 24 Jul 2001 19:19:38 +0000 Subject: [PATCH] --- source/backend/gameover.cpp | 10 ++++------ source/backend/gameover.h | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/source/backend/gameover.cpp b/source/backend/gameover.cpp index f5c576784..f5e8ca579 100644 --- a/source/backend/gameover.cpp +++ b/source/backend/gameover.cpp @@ -409,13 +409,11 @@ void CGameOverScene::thinkGameOver(int _frames) { if(!CFader::isFading()) { - if(!m_finishedGrowingText) + m_gameOverTimer+=_frames; + + if(m_finishedGrowingText&&!m_readyToExit) { - m_gameOverTimer+=_frames; - } - else - { - if(!m_readyToExit&&PadGetDown(0)&(PAD_START|PAD_CROSS)) + if(PadGetDown(0)&(PAD_START|PAD_CROSS)||m_gameOverTimer>GAMEOVER_DISPLAY_TIME) { m_readyToExit=true; CFader::setFadingOut(); diff --git a/source/backend/gameover.h b/source/backend/gameover.h index 21118d884..eb907c68f 100644 --- a/source/backend/gameover.h +++ b/source/backend/gameover.h @@ -79,6 +79,7 @@ private: GAMEOVER_FONT_GROWSPEED=150, GAMEOVER_FONT_GROWSPACING=900, GAMEOVER_FONT_MAXSIN=1500, + GAMEOVER_DISPLAY_TIME=60*10, }; void initGameOver(); void thinkGameOver(int _frames);