From fa875178a90e0188c87580a4ae6e2ccd42b521c1 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 7 Jun 2001 20:06:31 +0000 Subject: [PATCH] --- source/triggers/tgbowl.cpp | 15 +++++++++++++++ source/triggers/tgbowl.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/source/triggers/tgbowl.cpp b/source/triggers/tgbowl.cpp index 6ac12b991..520d4d7f7 100644 --- a/source/triggers/tgbowl.cpp +++ b/source/triggers/tgbowl.cpp @@ -68,5 +68,20 @@ void CGaryBowlTrigger::collidedWith(CThing *_thisThing) } } +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const CRECT *CGaryBowlTrigger::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; +} + /*=========================================================================== end */ diff --git a/source/triggers/tgbowl.h b/source/triggers/tgbowl.h index fd9ac992f..146483158 100644 --- a/source/triggers/tgbowl.h +++ b/source/triggers/tgbowl.h @@ -36,6 +36,8 @@ class CGaryBowlTrigger : public CTrigger { +public: + virtual CRECT const *getThinkBBox(); protected: virtual void collidedWith(CThing *_thisThing); };