This commit is contained in:
parent
16645de3b0
commit
b26a6d76bb
38 changed files with 517 additions and 137 deletions
|
@ -232,6 +232,16 @@ Vector3 Ofs;
|
|||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CLayerTile::LoadGfx(CCore *Core)
|
||||
{
|
||||
if (TileBank->NeedLoad())
|
||||
{
|
||||
TileBank->LoadAllSets(Core);
|
||||
Core->Validate(GetType());
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CLayerTile::Render(CCore *Core,Vector3 &ThisCam,CMap &ThisMap,bool Render3d,float Alpha,Vector3 *Ofs)
|
||||
{
|
||||
|
@ -248,12 +258,6 @@ int StartY=(int)ThisCam.y;
|
|||
float ShiftX=ThisCam.x - (int)ThisCam.x;
|
||||
float ShiftY=ThisCam.y - (int)ThisCam.y;
|
||||
|
||||
if (TileBank->NeedLoad())
|
||||
{
|
||||
TileBank->LoadAllSets(Core);
|
||||
Core->Validate(GetType());
|
||||
}
|
||||
|
||||
if (StartX<0) StartX=0;
|
||||
if (StartY<0) StartY=0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue