This commit is contained in:
parent
0987713a63
commit
a4eb20f133
1 changed files with 18 additions and 9 deletions
|
@ -74,11 +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;
|
||||||
/*bodge*/
|
|
||||||
if (SlotCount<CACHE_W-1)
|
printf("Get Slot %i Slots\n",SlotCount);
|
||||||
{
|
|
||||||
SlotCount++;
|
/*bodge*/ //if (SlotCount<CACHE_W-1)
|
||||||
}
|
SlotCount++;
|
||||||
}
|
}
|
||||||
SlotList[Slot].RefCount++;
|
SlotList[Slot].RefCount++;
|
||||||
|
|
||||||
|
@ -178,6 +178,7 @@ int MaxW=0;
|
||||||
int MaxH=0;
|
int MaxH=0;
|
||||||
|
|
||||||
/* if (TPW<1) */TPW=1;
|
/* if (TPW<1) */TPW=1;
|
||||||
|
|
||||||
ASSERT(SlotCount<CACHE_W);
|
ASSERT(SlotCount<CACHE_W);
|
||||||
|
|
||||||
for (int i=0; i<SlotCount; i++)
|
for (int i=0; i<SlotCount; i++)
|
||||||
|
@ -512,9 +513,17 @@ POLY_FT4 *Ft4;
|
||||||
if (!ThisNode)
|
if (!ThisNode)
|
||||||
{ // Not cached frame
|
{ // Not cached frame
|
||||||
ThisNode=CActorCache::RemoveHeadNode(PoolEntry->PoolCache);
|
ThisNode=CActorCache::RemoveHeadNode(PoolEntry->PoolCache);
|
||||||
CActorCache::AddNode(ThisNode,&PoolEntry->ActorCache);
|
if (ThisNode)
|
||||||
RECT R;
|
{
|
||||||
|
CActorCache::AddNode(ThisNode,&PoolEntry->ActorCache);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("NO FREE NODES\n");
|
||||||
|
ThisNode=PoolEntry->ActorCache.Head;
|
||||||
|
}
|
||||||
ASSERT(ThisNode);
|
ASSERT(ThisNode);
|
||||||
|
RECT R;
|
||||||
|
|
||||||
ThisNode->Actor=PoolEntry->Filename;
|
ThisNode->Actor=PoolEntry->Filename;
|
||||||
ThisNode->Anim=Anim;
|
ThisNode->Anim=Anim;
|
||||||
|
@ -705,8 +714,8 @@ void CModelGfx::SetModel(int Type)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
const int PXOfs=-16;
|
int PXOfs=-16;
|
||||||
const int PYOfs=-6;
|
int PYOfs=-8;
|
||||||
|
|
||||||
void CModelGfx::Render(DVECTOR &Pos,SVECTOR *Angle=0,VECTOR *Scale=0)
|
void CModelGfx::Render(DVECTOR &Pos,SVECTOR *Angle=0,VECTOR *Scale=0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue