This commit is contained in:
parent
469a744a87
commit
64012414b9
14 changed files with 50 additions and 33 deletions
|
@ -724,6 +724,38 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
|
||||
// Trigger -> Player projectile collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_PLAYERPROJECTILE];
|
||||
while(thing1)
|
||||
{
|
||||
thing2=s_CollisionLists[CThing::TYPE_TRIGGER];
|
||||
while(thing2)
|
||||
{
|
||||
if(thing1->checkCollisionAgainst(thing2, _frames))
|
||||
{
|
||||
thing2->collidedWith(thing1);
|
||||
}
|
||||
thing2=thing2->m_nextCollisionThing;
|
||||
}
|
||||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
|
||||
// Hazard -> Player projectile collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_PLAYERPROJECTILE];
|
||||
while(thing1)
|
||||
{
|
||||
thing2=s_CollisionLists[CThing::TYPE_HAZARD];
|
||||
while(thing2)
|
||||
{
|
||||
if(thing1->checkCollisionAgainst(thing2, _frames))
|
||||
{
|
||||
thing2->collidedWith(thing1);
|
||||
}
|
||||
thing2=thing2->m_nextCollisionThing;
|
||||
}
|
||||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
|
||||
// Friendly npc -> Platform projectile collision - first clear platforms
|
||||
|
||||
CNpcFriend *friendNpc = (CNpcFriend *) s_CollisionLists[CThing::TYPE_NPC];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue