This commit is contained in:
parent
bb454ee0a7
commit
4e9fb55b36
@ -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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;}
|
||||
|
Loading…
Reference in New Issue
Block a user