This commit is contained in:
parent
17a78fdd73
commit
1f1174bcc5
8 changed files with 241 additions and 33 deletions
|
@ -35,6 +35,10 @@
|
|||
#include "platform\platform.h"
|
||||
#endif
|
||||
|
||||
#ifndef __HAZARD_HAZARD_H__
|
||||
#include "hazard\hazard.h"
|
||||
#endif
|
||||
|
||||
#ifndef __PROJECTL_PROJECTL_H__
|
||||
#include "projectl\projectl.h"
|
||||
#endif
|
||||
|
@ -309,6 +313,7 @@ void CGameScene::initLevel()
|
|||
// Init actors (needs moving and tidying
|
||||
int actorNum;
|
||||
int platformNum;
|
||||
int hazardNum;
|
||||
|
||||
sThingActor **actorList = Level.getActorList();
|
||||
if (actorList)
|
||||
|
@ -356,6 +361,18 @@ void CGameScene::initLevel()
|
|||
}
|
||||
}
|
||||
|
||||
sThingHazard **hazardList = Level.getHazardList();
|
||||
if (hazardList)
|
||||
{
|
||||
for ( hazardNum = 0 ; hazardNum < Level.getHazardCount() ; hazardNum++ )
|
||||
{
|
||||
sThingHazard *ThisHazard = hazardList[hazardNum];
|
||||
CNpcHazard *hazard;
|
||||
hazard = CNpcHazard::Create( ThisHazard );
|
||||
hazard->setLayerCollision( Level.getCollisionLayer() );
|
||||
}
|
||||
}
|
||||
|
||||
// Song is loaded/dumped by the level, and played from here. This just gives some
|
||||
// better timing over when it starts (pkg)
|
||||
CSoundMediator::playSong();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue