diff --git a/source/enemy/nssnake.cpp b/source/enemy/nssnake.cpp index c672661fa..6784e68aa 100644 --- a/source/enemy/nssnake.cpp +++ b/source/enemy/nssnake.cpp @@ -709,3 +709,18 @@ void CNpcSeaSnakeEnemy::processShot( int _frames ) m_controlFunc = NPC_CONTROL_MOVEMENT; } } + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +const CRECT *CNpcSeaSnakeEnemy::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/enemy/nssnake.h b/source/enemy/nssnake.h index 98a581d75..f0f8c27a5 100644 --- a/source/enemy/nssnake.h +++ b/source/enemy/nssnake.h @@ -53,6 +53,7 @@ public: virtual void shutdown(); virtual void render(); virtual int checkCollisionAgainst(CThing *_thisThing, int _frames); + virtual CRECT const *getThinkBBox(); protected: virtual bool processSensor(); virtual void processClose( int _frames );