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) {