This commit is contained in:
Daveo 2001-05-29 15:43:22 +00:00
parent d6747572a6
commit d57be650f7

View file

@ -84,9 +84,12 @@ sLayerShadeBackGfx *GfxList=Data->GfxList;
for (i=0; i<Data->GfxCount; i++)
{
POLY_GT4 *sGt4,*Gt4=GetPrimGT4();
int PosX=(GfxList->PosX*BB)-XOfs;
int PosY=(GfxList->PosY*BB)-YOfs;
if (PosX>0-64 && PosX<512+64)
if (PosY>0-64 && PosY<256+64)
{
POLY_GT4 *sGt4,*Gt4=GetPrimGT4();
sLayerShadeBackGfxType &ThisType=Data->TypeList[GfxList->Type];
Gt4->x0=PosX+(GfxList->Ofs[0][0])*BM; Gt4->y0=PosY+(GfxList->Ofs[0][1])*BM;
@ -106,6 +109,7 @@ sLayerShadeBackGfx *GfxList=Data->GfxList;
setSemiTrans(Gt4,1);
Gt4->tpage=ThisType.TPage;// | GfxList->Trans<<5;
AddPrim(ThisOT,Gt4);
}
/*
// Bodge it cos artist made the fuckers too big
sGt4=GetPrimGT4(); *sGt4=*Gt4;