This commit is contained in:
Charles 2001-06-07 20:06:31 +00:00
parent 257e6f35c4
commit fa875178a9
2 changed files with 17 additions and 0 deletions

View file

@ -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 */ end */

View file

@ -36,6 +36,8 @@
class CGaryBowlTrigger : public CTrigger class CGaryBowlTrigger : public CTrigger
{ {
public:
virtual CRECT const *getThinkBBox();
protected: protected:
virtual void collidedWith(CThing *_thisThing); virtual void collidedWith(CThing *_thisThing);
}; };