This commit is contained in:
Paul 2001-05-11 21:35:08 +00:00
parent c48fce126a
commit 1cf2f4ef81
6 changed files with 55 additions and 6 deletions

View file

@ -134,6 +134,7 @@ extern int s_globalLevelSelectThing;
---------------------------------------------------------------------- */
void CMapScene::init()
{
#ifdef __E3__
m_font=new ("map screen font") FontBank();
m_font->initialise(&standardFont);
m_font->setJustification(FontBank::JUST_CENTRE);
@ -149,7 +150,7 @@ void CMapScene::init()
m_screenImage=MemAlloc(512*256*2,"MapScreen");
generateMapScreenImage();
SetScreenImage((u8*)m_screenImage);
#endif
m_readyToExit=false;
// CFader::setFadingIn(CFader::BLACK_FADE);
@ -164,10 +165,12 @@ void CMapScene::init()
---------------------------------------------------------------------- */
void CMapScene::shutdown()
{
#ifdef __E3__
ClearScreenImage();
MemFree(m_screenImage);
m_spriteBank->dump(); delete m_spriteBank;
m_font->dump(); delete m_font;
#endif
}
@ -179,6 +182,7 @@ void CMapScene::shutdown()
---------------------------------------------------------------------- */
void CMapScene::render()
{
#ifdef __E3__
int i,x,y,xpos,ypos;
int compilerGetsComfused;
char spatCount[10];
@ -219,6 +223,7 @@ m_font->setColour(0,255,0);
m_font->print(24,24,buf);
m_font->setColour(0,0,0);
m_font->print(25,25,buf);
#endif
}
@ -230,6 +235,7 @@ m_font->print(25,25,buf);
---------------------------------------------------------------------- */
void CMapScene::think(int _frames)
{
#ifdef __E3__
if(!CFader::isFading()&&!m_readyToExit)
{
// Change chapter
@ -308,6 +314,14 @@ void CMapScene::think(int _frames)
GameState::setNextScene(&GameScene);
}
}
#else
if(!m_readyToExit)
{
s_globalLevelSelectThing=0;
m_readyToExit=true;
GameState::setNextScene(&GameScene);
}
#endif
}