This commit is contained in:
parent
30272803d0
commit
25de06c1a6
21 changed files with 595 additions and 41 deletions
|
@ -543,11 +543,27 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
|
||||
// Enemy -> Player projectile collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_PLAYERPROJECTILE];
|
||||
thing2=s_CollisionLists[CThing::TYPE_ENEMY];
|
||||
// Friend -> Trigger collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_TRIGGER];
|
||||
while(thing1)
|
||||
{
|
||||
thing2=s_CollisionLists[CThing::TYPE_NPC];
|
||||
while(thing2)
|
||||
{
|
||||
if(thing1->checkCollisionAgainst(thing2, _frames))
|
||||
{
|
||||
thing1->collidedWith(thing2);
|
||||
}
|
||||
thing2=thing2->m_nextCollisionThing;
|
||||
}
|
||||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
|
||||
// Enemy -> Player projectile collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_PLAYERPROJECTILE];
|
||||
while(thing1)
|
||||
{
|
||||
thing2=s_CollisionLists[CThing::TYPE_ENEMY];
|
||||
while(thing2)
|
||||
{
|
||||
if(thing1->checkCollisionAgainst(thing2, _frames))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue