From c842d17b433e3f9ad2d82263eb852420a0a80596 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 21 Jun 2001 18:23:48 +0000 Subject: [PATCH] --- source/platform/plantern.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/source/platform/plantern.cpp b/source/platform/plantern.cpp index ea95c5e35..df630423e 100644 --- a/source/platform/plantern.cpp +++ b/source/platform/plantern.cpp @@ -82,15 +82,10 @@ void CNpcLanternPlatform::setWaypoints( sThingPlatform *ThisPlatform ) init( startPos ); } - s32 minX, maxX, minY, maxY; - - m_npcPath.getPathXExtents( &minX, &maxX ); - m_npcPath.getPathYExtents( &minY, &maxY ); - - m_thinkArea.x1 = minX; - m_thinkArea.x2 = maxX; - m_thinkArea.y1 = minY; - m_thinkArea.y2 = maxY; + m_thinkArea.x1 = Pos.vx - m_length; + m_thinkArea.x2 = Pos.vx + m_length; + m_thinkArea.y1 = Pos.vy - m_length; + m_thinkArea.y2 = Pos.vy + m_length; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////