This commit is contained in:
Daveo 2001-05-04 23:08:57 +00:00
parent 34a6f5b7c3
commit 9ea6f40efa
2 changed files with 18 additions and 5 deletions

View file

@ -126,6 +126,7 @@ hazard_src := hazard \
hspikes hspikes
fx_src := fx \ fx_src := fx \
fxjfish
projectl_src := projectl \ projectl_src := projectl \
prnpc \ prnpc \

View file

@ -74,7 +74,11 @@ int Slot=0;
Slot=SlotCount; Slot=SlotCount;
SlotList[Slot].Width=W; SlotList[Slot].Width=W;
SlotList[Slot].Height=H; SlotList[Slot].Height=H;
SlotCount++; /*bodge*/
if (SlotCount<CACHE_W-1)
{
SlotCount++;
}
} }
SlotList[Slot].RefCount++; SlotList[Slot].RefCount++;
@ -691,6 +695,7 @@ void CModelGfx::SetData(sModel *Table,sTri *TList,sQuad *QList,sVtx *VList)
ModelTriList=TList; ModelTriList=TList;
ModelQuadList=QList; ModelQuadList=QList;
ModelVtxList=VList; ModelVtxList=VList;
} }
/*****************************************************************************/ /*****************************************************************************/
@ -700,8 +705,6 @@ void CModelGfx::SetModel(int Type)
} }
/*****************************************************************************/ /*****************************************************************************/
//int DX=1;
//int DY=1;
const int PXOfs=-16; const int PXOfs=-16;
const int PYOfs=-6; const int PYOfs=-6;
@ -755,8 +758,17 @@ int ShiftY=(Pos.vy & 15);
*(u32*)&TPrimPtr->u1=T1; // Set UV1 *(u32*)&TPrimPtr->u1=T1; // Set UV1
*(u16*)&TPrimPtr->u2=T2; // Set UV2 *(u16*)&TPrimPtr->u2=T2; // Set UV2
if (TList->OTOfs>ActorOT)
{
ThisOT=OtPtr+(ActorOT+1);
}
else
{
ThisOT=OtPtr+(ActorOT-1);
}
// ThisOT=OtPtr+TList->OTOfs;
ThisOT=OtPtr+TList->OTOfs;
TList++; TList++;
gte_nclip_b(); gte_nclip_b();