This commit is contained in:
Paul 2000-11-24 15:19:42 +00:00
parent 0f348a9638
commit 9bd5af6beb
2 changed files with 17 additions and 3 deletions

View File

@ -69,6 +69,7 @@
/*----------------------------------------------------------------------
Vars
---- */
static int count;
/*----------------------------------------------------------------------
Function:
@ -108,6 +109,7 @@ void CFrontEndDemoMode::select()
{
// LOAD UP DEMO AND DEMO LEVEL
m_shuttingDown=false;
count=0;
CFader::setFadingIn();
}
@ -160,10 +162,14 @@ void CFrontEndDemoMode::render()
---------------------------------------------------------------------- */
void CFrontEndDemoMode::think(int _frames)
{
if(PadGetDown(0)&PAD_START) // OR DEMO ENDED
if(!m_shuttingDown)
{
m_shuttingDown=true;
CFader::setFadingOut();
count+=_frames;
if(PadGetDown(0)&PAD_START||count>60*20) // OR DEMO ENDED
{
m_shuttingDown=true;
CFader::setFadingOut();
}
}
}

View File

@ -125,6 +125,14 @@ SOURCE=..\..\..\source\fileio\pcfile.h
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\..\..\source\frontend\demomode.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\frontend\demomode.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\frontend\frontend.cpp
# End Source File
# Begin Source File