This commit is contained in:
parent
d79fba5228
commit
c3f2c27e6d
6 changed files with 64 additions and 40 deletions
|
@ -381,6 +381,10 @@ void CLevel::initLayers()
|
|||
CLayerTile *NewLayer=new ("Action Layer") CLayerTile3d(LevelHdr,Layer,m_RGBMap,m_RGBTable);
|
||||
NewLayer->init(MapPos,0);
|
||||
TileLayers[CLayerTile::LAYER_TILE_TYPE_ACTION]=NewLayer;
|
||||
MapSize.vx=Layer->Width;
|
||||
MapSize.vy=Layer->Height;
|
||||
MapSize16.vx=Layer->Width*16;
|
||||
MapSize16.vy=Layer->Height*16;
|
||||
}
|
||||
// Collision
|
||||
|
||||
|
@ -726,6 +730,7 @@ void CLevel::think(int _frames)
|
|||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
DVECTOR CLevel::getMapSize()
|
||||
{
|
||||
DVECTOR size;
|
||||
|
@ -737,7 +742,7 @@ sLayerHdr *layer;
|
|||
|
||||
return size;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
/*****************************************************************************/
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -78,7 +78,14 @@ static CFmaScene::FMA_SCRIPT_NUMBER getFMAToFollow() {return LvlTable[s_glo
|
|||
sThingHazard **getHazardList() {return HazardList;}
|
||||
|
||||
CLayerCollision *getCollisionLayer() {return CollisionLayer;}
|
||||
DVECTOR getMapSize();
|
||||
|
||||
DVECTOR const &getMapSize() {return(MapSize);}
|
||||
int getMapWidth() {return(MapSize.vx);}
|
||||
int getMapHeight() {return(MapSize.vy);}
|
||||
|
||||
DVECTOR const &getMapSize16() {return(MapSize16);}
|
||||
int getMapWidth16() {return(MapSize16.vx);}
|
||||
int getMapHeight16() {return(MapSize16.vy);}
|
||||
|
||||
bool GetNextLevel(int &Lvl);
|
||||
|
||||
|
@ -132,6 +139,7 @@ static int s_playerFacing;
|
|||
static u8 m_isBossRespawn;
|
||||
static s32 m_bossHealth;
|
||||
|
||||
DVECTOR MapSize,MapSize16;
|
||||
static CNpcCheckpointHazard *m_checkpoint;
|
||||
|
||||
// Level Repair stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue