This commit is contained in:
Daveo 2001-08-16 19:40:54 +00:00
parent 9aa9e98fa6
commit 4542864e8f
2 changed files with 8 additions and 3 deletions

View File

@ -205,7 +205,11 @@ void CLevel::init(int LevelNo)
// Load it
sLvlTab *lvlTab=&LvlTable[LevelNo];
m_isFMA=0;
if (lvlTab->Chapter==6)
{
m_isFMA=1;
}
CSoundMediator::setSong((CSoundMediator::SONGID)lvlTab->songId);
LevelHdr=(sLevelHdr*)CFileIO::loadFile(lvlTab->LevelFilename,"Level");
@ -633,7 +637,7 @@ void CLevel::initThings(int _respawningLevel)
CThingManager::matchWheelsAndWeights();
CThingManager::matchPressureSwitches();
CThingManager::matchGaryTriggers();
GameScene.initHealth();
if (!m_isFMA) GameScene.initHealth();
}

View File

@ -88,7 +88,7 @@ static CFmaScene::FMA_SCRIPT_NUMBER getFMAToFollow() {return LvlTable[s_glo
int getMapHeight16() {return(MapSize16.vy);}
bool GetNextLevel(int &Lvl);
int isFMA() {return(m_isFMA);}
void respawnLevel();
static sLevelHdr *getLevelHdr() {return(LevelHdr);}
@ -135,6 +135,7 @@ static int s_playerFacing;
u8 *m_RGBMap;
u8 *m_RGBTable;
u8 m_isFMA;
static u8 m_isBossRespawn;
static s32 m_bossHealth;