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; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////