From 7a9a28d101addda118ed1d3f4b687f295e35d5cf Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 1 Mar 2001 19:32:05 +0000 Subject: [PATCH] --- source/enemy/npc.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/source/enemy/npc.cpp b/source/enemy/npc.cpp index 16ba89bb5..917fa5f12 100644 --- a/source/enemy/npc.cpp +++ b/source/enemy/npc.cpp @@ -245,15 +245,12 @@ void CNpcEnemy::init() m_layerCollision = NULL; -//pkg -m_npcPath.initPath(); -//pkg + m_npcPath.initPath(); + switch ( m_data[this->m_type].initFunc ) { case NPC_INIT_DEFAULT: { - m_npcPath.initPath(); - DVECTOR newPos; newPos.vx = 100; @@ -332,8 +329,6 @@ m_npcPath.initPath(); { m_heading = m_fireHeading = 3072; - m_npcPath.initPath(); - DVECTOR newPos; newPos.vx = 100; @@ -357,8 +352,6 @@ m_npcPath.initPath(); case NPC_INIT_FIREBALL: { - m_npcPath.initPath(); - DVECTOR newPos; newPos.vx = 300; @@ -376,8 +369,6 @@ m_npcPath.initPath(); case NPC_INIT_RETURNING_HAZARD: { - m_npcPath.initPath(); - DVECTOR newPos; newPos.vx = 100; @@ -399,8 +390,6 @@ m_npcPath.initPath(); { m_heading = m_fireHeading = 0; - m_npcPath.initPath(); - DVECTOR newPos; newPos.vx = 200;