From dfc77e3238b75a12e867a032617073c1fe86af7f Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 7 Jun 2001 18:46:19 +0000 Subject: [PATCH] --- source/platform/plantern.cpp | 14 ++++++++++++++ source/platform/plantern.h | 1 + 2 files changed, 15 insertions(+) diff --git a/source/platform/plantern.cpp b/source/platform/plantern.cpp index 404b9bb58..ea20d640f 100644 --- a/source/platform/plantern.cpp +++ b/source/platform/plantern.cpp @@ -114,3 +114,17 @@ void CNpcLanternPlatform::processMovement( int _frames ) Pos.vy = m_base.vy + ( ( m_length * rsin( m_heading + m_extension ) ) >> 12 ); } +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const CRECT *CNpcLanternPlatform::getThinkBBox() +{ + CRECT objThinkBox = getCollisionArea(); + + sBBox &thinkBBox = CThingManager::getThinkBBox(); + objThinkBox.x1 = thinkBBox.XMin; + objThinkBox.x2 = thinkBBox.XMax; + objThinkBox.y1 = thinkBBox.YMin; + objThinkBox.y2 = thinkBBox.YMax; + + return &objThinkBox; +} diff --git a/source/platform/plantern.h b/source/platform/plantern.h index eae37c6dd..d4d558aa3 100644 --- a/source/platform/plantern.h +++ b/source/platform/plantern.h @@ -22,6 +22,7 @@ class CNpcLanternPlatform : public CNpcPlatform { public: virtual void postInit(); + virtual CRECT const *getThinkBBox(); protected: virtual void setWaypoints( sThingPlatform *ThisPlatform ); virtual void processMovement( int _frames );