This commit is contained in:
Daveo 2001-05-11 00:54:52 +00:00
parent bb454ee0a7
commit 4e9fb55b36
3 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,8 @@ virtual void think(int _frames);
virtual void render();
void SetUp(int _Width,int _Gap,int _Length,int _Count);
virtual CRECT const &getCollisionArea() {return (Parent->getCollisionArea());}
protected:
int XOfs;

View File

@ -211,14 +211,14 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
if (Flag)
{
thing->think(_frames);
thing->updateCollisionArea();
// thing->updateCollisionArea();
if (thing->canCollide())
{
CThingManager::addToCollisionList(thing);
}
}
/* THIS WILL NOT STAY HERE, THINGS MUST BE INITIALISED CORRECTLY */
// thing->updateCollisionArea();
thing->updateCollisionArea();
thing=thing->m_nextListThing;
}
@ -379,7 +379,7 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
// Shut emm down, sh sh shut em down, we shutem down
for(i=0;i<CThing::MAX_TYPE;i++)
{
thing=s_CollisionLists[i];
thing=s_thingLists[i];
CThing *nextThing = thing;
while(thing)
{

View File

@ -151,7 +151,7 @@ public:
DVECTOR const &getCollisionCentre() {return m_collisionCentre;}
DVECTOR const &getCollisionCentreOffset() {return m_collisionCentreOffset;}
int getCollisionRadius() {return m_collisionRadius;}
CRECT const &getCollisionArea() {return m_collisionArea;}
virtual CRECT const &getCollisionArea() {return m_collisionArea;}
s16 getCollisionAngle() {return m_collisionAngle;} // pkg - move to CNpcPlatform?
DVECTOR const &getNewCollidedPos() {return m_newCollidedPos;} // pkg - to be removed?
DVECTOR const &getCollisionSize() {return m_collisionSize;}