From 948117a252086705605ff592559d4e097bcf34e2 Mon Sep 17 00:00:00 2001 From: Daveo Date: Tue, 3 Apr 2001 20:03:16 +0000 Subject: [PATCH] --- source/enemy/npc.cpp | 11 +++++++++++ source/enemy/npc.h | 1 + 2 files changed, 12 insertions(+) diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 93d23fbae..4257ca063 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -223,6 +223,17 @@ void CNpcEnemy::setStartPos( s32 xPos, s32 yPos ) m_base = Pos; } + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Static function to initialise the actor pool with levels nasty folk +void CNpcEnemy::CacheActor(int Type) +{ +int m_type = mapEditConvertTable[Type - NPC_ENEMY_MAPEDIT_OFFSET]; + + CActorPool::GetActor(m_data[m_type].skelType); + +} + //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void CNpcEnemy::init() diff --git a/source/enemy/npc.h b/source/enemy/npc.h index b66274850..51497635e 100644 --- a/source/enemy/npc.h +++ b/source/enemy/npc.h @@ -170,6 +170,7 @@ public: void setPathType( u8 newType ) {m_npcPath.setPathType( newType );} void setStartPos( s32 xPos, s32 yPos ); + static void CacheActor(int Type); private: class CLayerCollision *m_layerCollision;