This commit is contained in:
parent
0f348a9638
commit
9bd5af6beb
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user