From bfa96dcf1415c5005f817c394df07d311189a102 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 25 Jun 2001 12:19:58 +0000 Subject: [PATCH] --- source/platform/pdual.cpp | 12 ++++++++++++ source/platform/pdual.h | 1 + 2 files changed, 13 insertions(+) diff --git a/source/platform/pdual.cpp b/source/platform/pdual.cpp index 08f3e1be1..e5a4b8134 100644 --- a/source/platform/pdual.cpp +++ b/source/platform/pdual.cpp @@ -140,6 +140,18 @@ void CNpcDualPlatform::setWaypoints( sThingPlatform *ThisPlatform ) m_thinkArea.y1 = startPos.vy; m_thinkArea.y2 = startPos.vy + m_maxExtension; + + m_otherPlatform->setThinkArea( m_thinkArea ); +} + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void CNpcDualPlatform::setThinkArea( CRECT &newArea ) +{ + m_thinkArea.x1 = newArea.x1; + m_thinkArea.y1 = newArea.y1; + m_thinkArea.x2 = newArea.x2; + m_thinkArea.y2 = newArea.y2; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/source/platform/pdual.h b/source/platform/pdual.h index 55c2f7e06..7c34bbe42 100644 --- a/source/platform/pdual.h +++ b/source/platform/pdual.h @@ -28,6 +28,7 @@ public: void setLineBase( DVECTOR base ) {m_lineBase = base;} DVECTOR getLineBase() {return( m_lineBase );} virtual void render(); + void setThinkArea( CRECT &newArea ); //virtual CRECT const *getThinkBBox(); protected: virtual void setWaypoints( sThingPlatform *ThisPlatform );