From a4eb20f133d7164ff20ecd04237116ff3d64c0c5 Mon Sep 17 00:00:00 2001 From: Daveo Date: Sat, 5 May 2001 16:34:58 +0000 Subject: [PATCH] --- source/gfx/actor.cpp | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/source/gfx/actor.cpp b/source/gfx/actor.cpp index 37af3b698..0710c6726 100644 --- a/source/gfx/actor.cpp +++ b/source/gfx/actor.cpp @@ -74,11 +74,11 @@ int Slot=0; Slot=SlotCount; SlotList[Slot].Width=W; SlotList[Slot].Height=H; -/*bodge*/ - if (SlotCountPoolCache); - CActorCache::AddNode(ThisNode,&PoolEntry->ActorCache); - RECT R; + if (ThisNode) + { + CActorCache::AddNode(ThisNode,&PoolEntry->ActorCache); + } + else + { + printf("NO FREE NODES\n"); + ThisNode=PoolEntry->ActorCache.Head; + } ASSERT(ThisNode); + RECT R; ThisNode->Actor=PoolEntry->Filename; ThisNode->Anim=Anim; @@ -705,8 +714,8 @@ void CModelGfx::SetModel(int Type) } /*****************************************************************************/ -const int PXOfs=-16; -const int PYOfs=-6; +int PXOfs=-16; +int PYOfs=-8; void CModelGfx::Render(DVECTOR &Pos,SVECTOR *Angle=0,VECTOR *Scale=0) {