From de50902c9cfa1b3247c63475c86624bd44366613 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 22 May 2001 14:24:59 +0000 Subject: [PATCH] --- source/hazard/hbarrel.cpp | 15 +++++++++++++++ source/hazard/hbarrel.h | 1 + 2 files changed, 16 insertions(+) diff --git a/source/hazard/hbarrel.cpp b/source/hazard/hbarrel.cpp index 63224f341..3991f213a 100644 --- a/source/hazard/hbarrel.cpp +++ b/source/hazard/hbarrel.cpp @@ -150,3 +150,18 @@ void CNpcBarrelHazard::render() m_modelGfx->Render(renderPos,&rotation,&scale); } } + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const CRECT *CNpcBarrelHazard::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; +} \ No newline at end of file diff --git a/source/hazard/hbarrel.h b/source/hazard/hbarrel.h index fa1c0f2b3..1fad3c383 100644 --- a/source/hazard/hbarrel.h +++ b/source/hazard/hbarrel.h @@ -23,6 +23,7 @@ class CNpcBarrelHazard : public CNpcHazard public: void init(); void render(); + virtual CRECT const *getThinkBBox(); protected: void processMovement( int _frames );