This commit is contained in:
Daveo 2001-05-10 22:39:23 +00:00
parent 6c28c8cc7f
commit 8309175a0c
3 changed files with 6 additions and 1 deletions

View File

@ -223,6 +223,7 @@ void CJellyfishGenerator::think( int _frames, CLevel *level )
enemy->setStartPos( startPos.vx >> 4, startPos.vy >> 4 ); enemy->setStartPos( startPos.vx >> 4, startPos.vy >> 4 );
enemy->postInit(); enemy->postInit();
enemy->updateCollisionArea();
} }
} }
else else

View File

@ -65,6 +65,7 @@ void CProjectile::init()
m_turnSpeed = 256; m_turnSpeed = 256;
m_extension = 0; m_extension = 0;
m_isShuttingDown = false; m_isShuttingDown = false;
updateCollisionArea();
} }
void CProjectile::init( DVECTOR initPos, s16 initHeading ) void CProjectile::init( DVECTOR initPos, s16 initHeading )

View File

@ -191,12 +191,15 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
if (Flag) if (Flag)
{ {
thing->think(_frames); thing->think(_frames);
thing->updateCollisionArea(); // thing->updateCollisionArea();
if (thing->canCollide()) if (thing->canCollide())
{ {
CThingManager::addToCollisionList(thing); CThingManager::addToCollisionList(thing);
} }
} }
/* THIS WILL NOT STAY HERE, THINGS MUST BE INITIALISED CORRECTLY */
thing->updateCollisionArea();
thing=thing->m_nextListThing; thing=thing->m_nextListThing;
} }
} }